utils

package
v3.4.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SIGHUP os.Signal = unix.SIGHUP
)

Platform specific signal synonyms

Functions

func AliasFlags

func AliasFlags(f *pflag.FlagSet, name string) pflag.NormalizedName

AliasFlags is a function to handle backwards compatibility with old flags

func FileExists

func FileExists(path string) bool

FileExists returns true if path refers to an existing file.

func IsDir

func IsDir(path string) bool

IsDir returns true if the specified path refers to a directory.

func PrintContainerPruneResults

func PrintContainerPruneResults(containerPruneReports []*reports.PruneReport, heading bool) error

func PrintImagePruneResults

func PrintImagePruneResults(imagePruneReports []*reports.PruneReport, heading bool) error

func PrintPodPruneResults

func PrintPodPruneResults(podPruneReports []*entities.PodPruneReport, heading bool) error

func PrintVolumePruneResults

func PrintVolumePruneResults(volumePruneReport []*reports.PruneReport, heading bool) error

func TimeoutAliasFlags

func TimeoutAliasFlags(f *pflag.FlagSet, name string) pflag.NormalizedName

TimeoutAliasFlags is a function to handle backwards compatibility with old timeout flags

Types

type OutputErrors

type OutputErrors []error

func (OutputErrors) PrintErrors

func (o OutputErrors) PrintErrors() (lastError error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL