INNER CODE UNIT · Go

searchHooks

deckhouse/deckhouse · deckhouse-controller/register/main.go:63

func searchHooks(hookModules *[]string, dir, workDir string) error {
	files := make(map[string]interface{})
	err := filepath.Walk(dir, func(path string, f os.FileInfo, err error) error {
		if f != nil && f.IsDir() {
			if f.Name() == "internal" {
				return filepath.SkipDir
			}
			return nil
		}
		if filepath.Ext(path) != ".go" {
			return nil
		}
		if strings.HasSuffix(path, "_test.go") {
			return nil
		}

		moduleName := filepath.Join(
			deckhouseModuleName,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…