Documentation ¶
Index ¶
- Variables
- func BashCompleteFns(c *cli.Context)
- func Create() cli.Command
- func CreateFn(r *fnclient.Fn, appID string, fn *models.Fn) (*models.Fn, error)
- func Delete() cli.Command
- func GetConfig() cli.Command
- func GetFnByName(client *fnclient.Fn, appID, fnName string) (*models.Fn, error)
- func Inspect() cli.Command
- func List() cli.Command
- func ListConfig() cli.Command
- func PutFn(f *fnclient.Fn, fnID string, fn *models.Fn) error
- func SetConfig() cli.Command
- func UnsetConfig() cli.Command
- func Update() cli.Command
- func WithFlags(c *cli.Context, fn *models.Fn)
- func WithFuncFileV20180708(ff *common.FuncFileV20180708, fn *models.Fn) error
- func WithSlash(p string) string
- func WithoutSlash(p string) string
- type NameNotFoundError
Constants ¶
This section is empty.
Variables ¶
View Source
var FnFlags = []cli.Flag{ cli.Uint64Flag{ Name: "memory,m", Usage: "Memory in MiB", }, cli.StringSliceFlag{ Name: "config,c", Usage: "Function configuration", }, cli.IntFlag{ Name: "timeout", Usage: "Function timeout (eg. 30)", }, cli.IntFlag{ Name: "idle-timeout", Usage: "Function idle timeout (eg. 30)", }, cli.StringSliceFlag{ Name: "annotation", Usage: "Function annotation (can be specified multiple times)", }, cli.StringFlag{ Name: "image", Usage: "Function image", }, }
FnFlags used to create/update functions
Functions ¶
func BashCompleteFns ¶
BashCompleteFns can be called from a BashComplete function to provide function completion suggestions (Assumes the current context already contains an app name as an argument. This should be confirmed before calling this)
func GetFnByName ¶
GetFnByName looks up a fn by name using the given client
func WithFuncFileV20180708 ¶
func WithFuncFileV20180708(ff *common.FuncFileV20180708, fn *models.Fn) error
WithFuncFileV20180708 used when creating a function from a funcfile
Types ¶
type NameNotFoundError ¶
type NameNotFoundError struct {
Name string
}
NameNotFoundError error for app not found when looked up by name
func (NameNotFoundError) Error ¶
func (n NameNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.