- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getPatchSetsFromPath (0.17 sec)
-
cmd/kubeadm/app/util/patches/patches.go
} return &patchSet{ targetName: targetName, patchType: patchType, patches: patches, }, nil } // getPatchSetsFromPath walks a path, ignores sub-directories and non-patch files, and // returns a list of patchFile objects. func getPatchSetsFromPath(targetPath string, knownTargets []string, output io.Writer) ([]*patchSet, []string, []string, error) { patchFiles := []string{} ignoredFiles := []string{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 10.2K bytes - Viewed (0) -
cmd/kubeadm/app/util/patches/patches_test.go
tempFile, err := os.CreateTemp("", "test-file") if err != nil { t.Errorf("error creating temporary file: %v", err) } defer utiltesting.CloseAndRemove(t, tempFile) _, _, _, err = getPatchSetsFromPath(tempFile.Name(), testKnownTargets, io.Discard) var pathErr *os.PathError if !errors.As(err, &pathErr) { t.Fatalf("expected os.PathError for non-directory path %q, but got %v", tempFile.Name(), err) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 09 14:24:11 UTC 2023 - 11.9K bytes - Viewed (0)