utils

package
v3.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 11

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

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