docs: fix some function names in comment

Signed-off-by: luchenhan <hanluchen@aliyun.com>
This commit is contained in:
luchenhan
2025-01-14 11:36:35 +08:00
parent f12042aa79
commit 740c5d4284
4 changed files with 4 additions and 4 deletions

View File

@@ -269,7 +269,7 @@ var Command = &cli.Command{
},
}
// buildLabel builds the labels from command line labels and the image labels
// buildLabels builds the labels from command line labels and the image labels
func buildLabels(cmdLabels, imageLabels map[string]string) map[string]string {
labels := make(map[string]string)
for k, v := range imageLabels {

View File

@@ -165,7 +165,7 @@ func load(path string) error {
return nil
}
// macrosExists checks if the passed macro exists.
// macroExists checks if the passed macro exists.
func macroExists(m string) bool {
_, err := os.Stat(path.Join(dir, m))
return err == nil

View File

@@ -68,7 +68,7 @@ func generateBlobs(f *fuzz.ConsumeFuzzer) (map[digest.Digest][]byte, error) {
return blobs, nil
}
// checkwrite is a wrapper around content.WriteBlob()
// checkWrite is a wrapper around content.WriteBlob()
func checkWrite(ctx context.Context, cs content.Store, dgst digest.Digest, p []byte) (digest.Digest, error) {
if err := content.WriteBlob(ctx, cs, dgst.String(), bytes.NewReader(p),
ocispec.Descriptor{Size: int64(len(p)), Digest: dgst}); err != nil {

View File

@@ -67,7 +67,7 @@ func GetPassthroughAnnotations(podAnnotations map[string]string,
return passthroughAnnotations
}
// BuildLabel builds the labels from config to be passed to containerd
// BuildLabels builds the labels from config to be passed to containerd
func BuildLabels(configLabels, imageConfigLabels map[string]string, containerType string) map[string]string {
labels := make(map[string]string)