Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCommand() cli.Command
- func BuildServerCommand() 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
- type Cmd
- type Message
Constants ¶
View Source
const ( FnInvokeEndpointAnnotation = "fnproject.io/fn/invokeEndpoint" CallIDHeader = "Fn-Call-Id" )
FnInvokeEndpointAnnotation is the annotation that exposes the fn invoke endpoint as defined in models/fn.go
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" )
Variables ¶
View Source
var Commands = Cmd{ "build": BuildCommand(), "build-server": BuildServerCommand(), "bump": common.BumpCommand(), "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 ConfigListCmds = Cmd{ "apps": app.ListConfig(), "functions": fn.ListConfig(), }
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(), "config": ConfigCommand("delete"), }
View Source
var GetCmds = Cmd{ "config": ConfigCommand("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: "content-type", Usage: "The payload Content-Type for the function invocation.", }, cli.BoolFlag{ Name: "display-call-id", Usage: "whether display call ID or not", }, cli.StringFlag{ Name: "output", Usage: "Output format (json)", }, }
InvokeFnFlags used to invoke and fn
View Source
var ListCmds = Cmd{ "config": ConfigCommand("list"), "apps": app.List(), "functions": fn.List(), "triggers": trigger.List(), "contexts": context.List(), }
View Source
var RegionsWithOldKMSEndpoints = map[ociCommon.Region]struct{}{ ociCommon.RegionPHX: {}, ociCommon.RegionIAD: {}, ociCommon.RegionFRA: {}, ociCommon.RegionLHR: {}, ociCommon.RegionCAToronto1: {}, ociCommon.RegionAPSeoul1: {}, ociCommon.RegionAPTokyo1: {}, ociCommon.RegionAPMumbai1: {}, ociCommon.RegionEUZurich1: {}, ociCommon.RegionSASaopaulo1: {}, ociCommon.RegionAPSydney1: {}, ociCommon.RegionMEJeddah1: {}, ociCommon.RegionEUAmsterdam1: {}, ociCommon.RegionAPMelbourne1: {}, ociCommon.RegionAPOsaka1: {}, ociCommon.RegionCAMontreal1: {}, ociCommon.RegionUSLangley1: {}, ociCommon.RegionUSLuke1: {}, ociCommon.RegionUSGovAshburn1: {}, ociCommon.RegionUSGovChicago1: {}, ociCommon.RegionUSGovPhoenix1: {}, ociCommon.RegionUKGovLondon1: {}, }
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
}
type Message ¶
type Message struct { Description string `mandatory:"true" json:"description"` ImageDigest string `mandatory:"true" json:"imageDigest"` KmsKeyId string `mandatory:"true" json:"kmsKeyId"` KmsKeyVersionId string `mandatory:"true" json:"kmsKeyVersionId"` Metadata string `mandatory:"true" json:"metadata"` Region string `mandatory:"true" json:"region"` RepositoryName string `mandatory:"true" json:"repositoryName"` SigningAlgorithm string `mandatory:"true" json:"signingAlgorithm"` }
Message defines the struct of container image signature payload
Click to show internal directories.
Click to hide internal directories.