Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDestinationDir ¶
GetDestinationDir returns the destination directory, if outDir is not defined it creates a temp dir.
func NewFnRunCommand ¶
func NewFnRunCommand(f *flags.GlobalFlags) *cobra.Command
func ValidateFunctionImageURL ¶
ValidateFunctionImageURL validates the function name. According to Docker implementation https://github.com/docker/distribution/blob/master/reference/reference.go. A valid name definition is:
name := [domain '/'] path-component ['/' path-component]* domain := domain-component ['.' domain-component]* [':' port-number] domain-component := /([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])/ port-number := /[0-9]+/ path-component := alpha-numeric [separator alpha-numeric]* alpha-numeric := /[a-z0-9]+/ separator := /[_.]|__|[-]*/
func WriteOutput ¶
WriteOutput Write the resource to the output directory. If the output directory is not specified, the resource is written to stdout.
Types ¶
Click to show internal directories.
Click to hide internal directories.