mirror of
https://github.com/containers/podman.git
synced 2025-07-01 16:17:06 +08:00
Merge pull request #22299 from lvyaoting/main
[CI:DOCS] chore: fix function names in comment
This commit is contained in:
@ -446,7 +446,7 @@ func (l psReporter) CreatedAt() string {
|
||||
return l.Created.String()
|
||||
}
|
||||
|
||||
// CreateHuman allows us to output the created time in human readable format
|
||||
// CreatedHuman allows us to output the created time in human readable format
|
||||
func (l psReporter) CreatedHuman() string {
|
||||
return units.HumanDuration(time.Since(l.Created)) + " ago"
|
||||
}
|
||||
|
@ -1469,7 +1469,7 @@ func (s *BoltState) GetContainerExitCodeTimeStamp(id string) (*time.Time, error)
|
||||
})
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (s *BoltState) PruneContainerExitCodes() error {
|
||||
if !s.valid {
|
||||
|
@ -2482,7 +2482,7 @@ func (c *Container) hasNamespace(namespace spec.LinuxNamespaceType) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// extractSecretToStorage copies a secret's data from the secrets manager to the container's static dir
|
||||
// extractSecretToCtrStorage copies a secret's data from the secrets manager to the container's static dir
|
||||
func (c *Container) extractSecretToCtrStorage(secr *ContainerSecret) error {
|
||||
manager, err := c.runtime.SecretsManager()
|
||||
if err != nil {
|
||||
|
@ -26,7 +26,7 @@ func (c *Container) pathAbs(path string) string {
|
||||
return path
|
||||
}
|
||||
|
||||
// resolveContainerPaths resolves the container's mount point and the container
|
||||
// resolvePath resolves the container's mount point and the container
|
||||
// path as specified by the user. Both may resolve to paths outside of the
|
||||
// container's mount point when the container path hits a volume or bind mount.
|
||||
//
|
||||
@ -153,7 +153,7 @@ func isPathOnVolume(c *Container, containerPath string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// findBindMounts checks if the specified containerPath matches the destination
|
||||
// findBindMount checks if the specified containerPath matches the destination
|
||||
// path of a Mount. Returns a matching Mount or nil.
|
||||
func findBindMount(c *Container, containerPath string) *specs.Mount {
|
||||
cleanedPath := filepath.Clean(containerPath)
|
||||
|
Reference in New Issue
Block a user