Documentation
¶
Index ¶
- Variables
- func ApplyGeneratedOCIParityFnFlags(c *cli.Context, fn *models.Fn) error
- func ApplyGeneratedOCIParityFnListParams(c *cli.Context, params *apifns.ListFnsParams)
- func ApplyProvisionedConcurrency(p provider.Provider, fnID string, cfg *common.OCIProvisionedConcurrencyConfig) error
- func BashCompleteFns(c *cli.Context)
- func Create() cli.Command
- func CreateFn(r *fnclient.Fn, appID string, fn *models.Fn) (*models.Fn, error)
- func CreateFnWithControl(r *fnclient.Fn, appID string, fn *models.Fn, control common.OCIRequestControl) (*models.Fn, error)
- func Delete() cli.Command
- func GeneratedOCIParityCreateUpdateFnFlags() []cli.Flag
- func GeneratedOCIParityListFnFlags() []cli.Flag
- 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 PutFnWithControl(f *fnclient.Fn, fnID string, fn *models.Fn, control common.OCIRequestControl) error
- func ResolvePBFMemoryForListing(p provider.Provider, fn *models.Fn, listingID string) error
- func SetClearDestinationAnnotations(fn *models.Fn, clearSuccess, clearFailure bool)
- func SetConfig() cli.Command
- func SetDestinationAnnotations(fn *models.Fn, onSuccess, onFailure *common.OCIDestination)
- func SetDetachedTimeoutAnnotation(fn *models.Fn, seconds int)
- func SetProvisionedConcurrencyAnnotations(fn *models.Fn, cfg *common.OCIProvisionedConcurrencyConfig) error
- 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 ¶
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.StringSliceFlag{ Name: "tag", Usage: "Freeform tag in key=value form (can be specified multiple times)", }, cli.StringSliceFlag{ Name: "defined-tag", Usage: "Defined tag in namespace.key=value form (can be specified multiple times)", }, cli.StringFlag{ Name: "image", Usage: "Function image", }, cli.StringFlag{ Name: "pbf", Usage: "Create the function from a Pre-Built Function listing OCID", }, cli.StringFlag{ Name: "provisioned-concurrency", Usage: "Set OCI provisioned concurrency using 'none' or 'constant:<count>'", }, cli.StringFlag{ Name: "detached-timeout", Usage: "Set OCI detached mode timeout using a duration like 20m or 1h", }, cli.StringFlag{ Name: "on-success", Usage: "Set OCI detached success destination using <stream|queue|notifications>:<ocid>", }, cli.StringFlag{ Name: "on-failure", Usage: "Set OCI detached failure destination using <stream|queue|notifications>:<ocid>", }, }
FnFlags used to create/update functions
Functions ¶
func ApplyGeneratedOCIParityFnListParams ¶
func ApplyGeneratedOCIParityFnListParams(c *cli.Context, params *apifns.ListFnsParams)
func ApplyProvisionedConcurrency ¶
func ApplyProvisionedConcurrency(p provider.Provider, fnID string, cfg *common.OCIProvisionedConcurrencyConfig) error
ApplyProvisionedConcurrency applies OCI provisioned concurrency to a function when the active provider is Oracle.
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 CreateFnWithControl ¶
func GetFnByName ¶
GetFnByName looks up a fn by name using the given client
func PutFnWithControl ¶
func ResolvePBFMemoryForListing ¶
ResolvePBFMemoryForListing auto-selects or validates memory for a PBF-backed function.
func SetDestinationAnnotations ¶
func SetDestinationAnnotations(fn *models.Fn, onSuccess, onFailure *common.OCIDestination)
func SetProvisionedConcurrencyAnnotations ¶
func SetProvisionedConcurrencyAnnotations(fn *models.Fn, cfg *common.OCIProvisionedConcurrencyConfig) error
SetProvisionedConcurrencyAnnotations adds the internal annotations used to carry provisioned concurrency through the create payload into the OCI shim.
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