utils

package
v4.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 10 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 ExitCodeFromBuildError

func ExitCodeFromBuildError(errorMsg string) (int, error)

For remote client, server does not returns error with exit code

instead returns a message and we cast it to a new error.

Following function performs parsing on build error and returns
exit status which was expected for this current build

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