mirror of
https://github.com/containerd/containerd.git
synced 2026-08-03 22:50:44 +00:00
docs: fix some function names in comment
Signed-off-by: luchenhan <hanluchen@aliyun.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user