chore: fix function names in comment

Signed-off-by: findnature <cricis@aliyun.com>
This commit is contained in:
findnature 2024-04-24 12:07:38 +08:00
parent f82c7cefef
commit c681df35c0
5 changed files with 5 additions and 5 deletions

View File

@ -557,7 +557,7 @@ func WithShmDir(dir string) CtrCreateOption {
} }
} }
// WithNOShmMount tells libpod whether to mount /dev/shm // WithNoShm tells libpod whether to mount /dev/shm
func WithNoShm(mount bool) CtrCreateOption { func WithNoShm(mount bool) CtrCreateOption {
return func(ctr *Container) error { return func(ctr *Container) error {
if ctr.valid { if ctr.valid {

View File

@ -105,7 +105,7 @@ func (r *Runtime) IsExternalContainerCallback(_ context.Context) libimage.IsExte
} }
} }
// newBuildEvent creates a new event based on completion of a built image // newImageBuildCompleteEvent creates a new event based on completion of a built image
func (r *Runtime) newImageBuildCompleteEvent(idOrName string) { func (r *Runtime) newImageBuildCompleteEvent(idOrName string) {
e := events.NewEvent(events.Build) e := events.NewEvent(events.Build)
e.Type = events.Image e.Type = events.Image

View File

@ -996,7 +996,7 @@ func (s *SQLiteState) GetContainerExitCodeTimeStamp(id string) (*time.Time, erro
return &result, nil return &result, nil
} }
// PruneExitCodes removes exit codes older than 5 minutes unless the associated // PruneContainerExitCodes removes exit codes older than 5 minutes unless the associated
// container still exists. // container still exists.
func (s *SQLiteState) PruneContainerExitCodes() (defErr error) { func (s *SQLiteState) PruneContainerExitCodes() (defErr error) {
if !s.valid { if !s.valid {

View File

@ -222,7 +222,7 @@ func CRRuntimeSupportsCheckpointRestore(runtimePath string) bool {
return false return false
} }
// CRRuntimeSupportsCheckpointRestore tests if the runtime at 'runtimePath' // CRRuntimeSupportsPodCheckpointRestore tests if the runtime at 'runtimePath'
// supports restoring into existing Pods. The runtime needs to support // supports restoring into existing Pods. The runtime needs to support
// the CRIU option --lsm-mount-context and the existence of this is checked // the CRIU option --lsm-mount-context and the existence of this is checked
// by this function. In addition it is necessary to at least have CRIU 3.16. // by this function. In addition it is necessary to at least have CRIU 3.16.

View File

@ -26,7 +26,7 @@ type listLocal struct {
options listBuilderOptions options listBuilderOptions
} }
// newLocalManifestListBuilder returns a manifest list builder which saves a // newManifestListBuilder returns a manifest list builder which saves a
// manifest list and images to local storage. // manifest list and images to local storage.
func newManifestListBuilder(listName string, localEngine entities.ImageEngine, options listBuilderOptions) *listLocal { func newManifestListBuilder(listName string, localEngine entities.ImageEngine, options listBuilderOptions) *listLocal {
return &listLocal{ return &listLocal{