cmdutil

package
v1.0.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StackTraceOnErrors = "COBRA_STACK_TRACE_ON_ERRORS"
)

Variables

View Source
var StackOnError bool

StackOnError if true, will print a stack trace on failure.

Functions

func DockerCmdAvailable

func DockerCmdAvailable() error

DockerCmdAvailable runs `docker ps` to check that the docker command is available, and returns an error with installation instructions if it is not

func FixDocs

func FixDocs(old, new string, c *cobra.Command)

FixDocs replaces instances of old with new in the docs for c

func PrintErrorStacktrace added in v0.34.0

func PrintErrorStacktrace() bool

func ResolveAbsAndRelPaths

func ResolveAbsAndRelPaths(path string) (string, string, error)

func StringToImagePullPolicy

func StringToImagePullPolicy(v string) fnruntime.ImagePullPolicy

func ValidateImagePullPolicyValue

func ValidateImagePullPolicyValue(v string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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