Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCommand() cli.Command
- func BuildServerCommand() cli.Command
- func CallCommand() cli.Command
- func ConfigCommand(command string) cli.Command
- func ConfigureCommand() cli.Command
- func CreateCommand() cli.Command
- func DeleteCommand() cli.Command
- func DeployCommand() cli.Command
- func GetCommand() cli.Command
- func GetCommands(commands map[string]cli.Command) []cli.Command
- func InitCommand() cli.Command
- func InspectCommand() cli.Command
- func InvokeCommand() cli.Command
- func ListCommand() cli.Command
- func MigrateCommand() cli.Command
- func PushCommand() cli.Command
- func StartCommand() cli.Command
- func StopCommand() cli.Command
- func UnsetCommand() cli.Command
- func UpdateCommand() cli.Command
- func UseCommand() cli.Command
- func ValidateFuncName(name string) error
- func VersionCommand() cli.Command
- type BuildServerCmd
Constants ¶
View Source
const ( MigrateSuccessMessage = "Successfully migrated func.yaml and created a back up func.yaml.bak" MigrateFailureMessage = "you have an up to date func.yaml file and do not need to migrate" )
View Source
const FnInvokeEndpointAnnotation = "fnproject.io/fn/invokeEndpoint"
FnInvokeEndpointAnnotation is the annotation that exposes the fn invoke endpoint as defined in models/fn.go
Variables ¶
View Source
var Commands = cmd{ "build": BuildCommand(), "build-server": BuildServerCommand(), "bump": common.BumpCommand(), "call": CallCommand(), "invoke": InvokeCommand(), "configure": ConfigureCommand(), "create": CreateCommand(), "delete": DeleteCommand(), "deploy": DeployCommand(), "get": GetCommand(), "init": InitCommand(), "inspect": InspectCommand(), "list": ListCommand(), "migrate": MigrateCommand(), "push": PushCommand(), "start": StartCommand(), "stop": StopCommand(), "unset": UnsetCommand(), "update": UpdateCommand(), "use": UseCommand(), }
Commands map of all top-level commands
View Source
var ConfigCmds = cmd{ "apps": app.SetConfig(), "functions": fn.SetConfig(), }
View Source
var ConfigGetCmds = cmd{ "apps": app.GetConfig(), "functions": fn.GetConfig(), }
View Source
var ConfigListCmds = cmd{ "apps": app.ListConfig(), "functions": fn.ListConfig(), }
View Source
var ConfigSetCmds = cmd{ "apps": app.SetConfig(), "functions": fn.SetConfig(), }
View Source
var ConfigUnsetCmds = cmd{ "apps": app.UnsetConfig(), "functions": fn.UnsetConfig(), }
View Source
var CreateCmds = cmd{ "apps": app.Create(), "functions": fn.Create(), "triggers": trigger.Create(), "context": context.Create(), }
View Source
var DeleteCmds = cmd{ "apps": app.Delete(), "functions": fn.Delete(), "context": context.Delete(), "triggers": trigger.Delete(), }
View Source
var GetCmds = cmd{ "config": ConfigCommand("get"), "logs": log.Get(), "calls": call.Get(), }
View Source
var InspectCmds = cmd{ "apps": app.Inspect(), "context": context.Inspect(), "functions": fn.Inspect(), "triggers": trigger.Inspect(), }
View Source
var InvokeFnFlags = []cli.Flag{ cli.StringFlag{ Name: "endpoint", Usage: "Specify the function invoke endpoint for this function, the app-name and func-name parameters will be ignored", }, cli.StringFlag{ Name: "method", Usage: "Http method for function", }, cli.StringFlag{ Name: "content-type", Usage: "The payload Content-Type for the function invocation.", }, cli.BoolFlag{ Name: "display-call-id", Usage: "whether display call ID or not", }, }
InvokeFnFlags used to invoke and fn
View Source
var ListCmds = cmd{ "config": ConfigCommand("list"), "apps": app.List(), "functions": fn.List(), "triggers": trigger.List(), "calls": call.List(), "contexts": context.List(), }
View Source
var UnsetCmds = cmd{ "config": ConfigCommand("unset"), "context": context.Unset(), }
View Source
var UpdateCmds = cmd{ "apps": app.Update(), "functions": fn.Update(), "context": context.Update(), "server": server.Update(), "trigger": trigger.Update(), }
View Source
var UseCmds = cmd{ "context": context.Use(), }
Functions ¶
func BuildServerCommand ¶
BuildServerCommand returns build server cli.command
func ConfigCommand ¶
ConfigCommand returns config cli.command dependant on command parameter
func ConfigureCommand ¶
ConfigureCommand returns configure cli.command
func GetCommands ¶
GetCommands returns a list of cli.commands
func MigrateCommand ¶
func ValidateFuncName ¶
ValidateFuncName checks if the func name is valid, the name can't contain a colon and must be all lowercase
Types ¶
type BuildServerCmd ¶
type BuildServerCmd struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.