chore: fix some function names in comment

Signed-off-by: solunolab <solunolab@outlook.com>
This commit is contained in:
solunolab 2026-06-07 11:29:49 +08:00
parent 138879058b
commit cba51d1de4
4 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ func init() {
pushFlags(pushCmd)
}
// pullFlags set the flags for the pull command.
// pushFlags sets the flags for the push command.
func pushFlags(cmd *cobra.Command) {
flags := cmd.Flags()

View file

@ -165,7 +165,7 @@ func findBindMount(c *Container, containerPath string) *specs.Mount {
return nil
}
// / isPathOnMount returns true if the specified containerPath is a subdir of any
// isPathOnMount returns true if the specified containerPath is a subdir of any
// Mount's destination.
func isPathOnMount(c *Container, containerPath string) bool {
cleanedContainerPath := filepath.Clean(containerPath)

View file

@ -138,7 +138,7 @@ func (c *Container) newExecDiedEvent(sessionID string, exitCode int) {
}
}
// newNetworkEvent creates a new event based on a network create/remove
// NewNetworkEvent creates a new event based on a network create/remove
func (r *Runtime) NewNetworkEvent(status events.Status, netName, netID, netDriver string) {
e := events.NewEvent(status)
e.Network = netName

View file

@ -137,7 +137,7 @@ func applyFilters(event *Event, filterMap map[string][]EventFilter) bool {
return true
}
// generateEventFilter parses the specified filters into a filter map that can
// generateEventFilters parses the specified filters into a filter map that can
// later on be used to filter events. Keys are conjunctive, values are
// disjunctive.
func generateEventFilters(filters []string, since, until string) (map[string][]EventFilter, error) {