Documentation ¶
Index ¶
- Constants
- Variables
- func DockerCmdAvailable() error
- func FixDocs(old, new string, c *cobra.Command)
- func PrintErrorStacktrace() bool
- func ResolveAbsAndRelPaths(path string) (string, string, error)
- func StringToImagePullPolicy(v string) fnruntime.ImagePullPolicy
- func ValidateImagePullPolicyValue(v string) error
- func WriteFnOutput(dest, content string, fromStdin bool, w io.Writer) error
- func WriteToOutput(r io.Reader, w io.Writer, outDir string) error
Constants ¶
View Source
const ( StackTraceOnErrors = "COBRA_STACK_TRACE_ON_ERRORS" Stdout = "stdout" Unwrap = "unwrap" )
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 PrintErrorStacktrace ¶ added in v0.34.0
func PrintErrorStacktrace() bool
func StringToImagePullPolicy ¶
func StringToImagePullPolicy(v string) fnruntime.ImagePullPolicy
func WriteFnOutput ¶
WriteFnOutput writes the output resources of function commands to provided destination
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.