function

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBuildCommand

func RegisterBuildCommand(register *commands.Register)

func RegisterCategory

func RegisterCategory(register *commands.Register)

Types

type BuildAction

type BuildAction struct {
	Name      string `short:"n" long:"name" env:"GITLAB_FUNCTION_NAME" description:"Function name"`
	File      string `short:"f" long:"file" env:"GITLAB_FUNCTION_FILE" description:"Function file"`
	Handler   string `short:"c" long:"handler" env:"GITLAB_FUNCTION_HANDLER" description:"Function handler"`
	Runtime   string `short:"r" long:"runtime" env:"GITLAB_FUNCTION_RUNTIME" description:"Function runtime"`
	Directory string `short:"d" long:"directory" env:"GITLAB_FUNCTION_DIRECTORY" description:"Directory with code"`
	Image     string `short:"i" long:"image" env:"GITLAB_FUNCTION_IMAGE" description:"Resulting image name"`
	DryRun    bool   `short:"t" long:"dry-run" env:"GITLAB_FUNCTION_DRYRUN" description:"Dry run only"`
}

func (*BuildAction) Execute

func (action *BuildAction) Execute(context *commands.Context) error

Jump to

Keyboard shortcuts

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