Documentation
¶
Index ¶
- func New(platform deployment.Platform) faas.FaaS
- type OpenFaaS
- func (ptr *OpenFaaS) DeployFunction(ctx context.Context, options *faas.DeployFunctionOptions) error
- func (ptr *OpenFaaS) DeploySecret(ctx context.Context, options *faas.DeploySecretOptions) error
- func (ptr *OpenFaaS) Init(ctx context.Context, options *faas.InitOptions) error
- func (ptr *OpenFaaS) Invoke(ctx context.Context, options *faas.InvokeOptions) error
- func (ptr *OpenFaaS) ListFunctions(ctx context.Context, options *faas.ListFunctionsOptions) ([]*faas.FunctionInfo, error)
- func (ptr *OpenFaaS) ListSecrets(ctx context.Context, options *faas.ListSecretsOptions) ([]*faas.SecretInfo, error)
- func (ptr *OpenFaaS) ScaleFunction(ctx context.Context, options *faas.ScaleFunctionOptions) error
- func (ptr *OpenFaaS) Teardown(ctx context.Context, options *faas.TeardownOptions) error
- func (ptr *OpenFaaS) UndeployFunction(ctx context.Context, options *faas.UndeployFunctionOptions) error
- func (ptr *OpenFaaS) UndeploySecret(ctx context.Context, options *faas.UndeploySecretOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OpenFaaS ¶
type OpenFaaS struct {
// contains filtered or unexported fields
}
OpenFaaS is the btrfaas implementation of the FaaS interface
func (*OpenFaaS) DeployFunction ¶
DeployFunction deploys a service in an environment
func (*OpenFaaS) DeploySecret ¶
DeploySecret deploys a secret in an environment
func (*OpenFaaS) ListFunctions ¶
func (ptr *OpenFaaS) ListFunctions(ctx context.Context, options *faas.ListFunctionsOptions) ([]*faas.FunctionInfo, error)
ListFunctions returns a list of all deployed services
func (*OpenFaaS) ListSecrets ¶
func (ptr *OpenFaaS) ListSecrets(ctx context.Context, options *faas.ListSecretsOptions) ([]*faas.SecretInfo, error)
ListSecrets returns a list of all deployed secrets
func (*OpenFaaS) ScaleFunction ¶
ScaleFunction scales the service
func (*OpenFaaS) UndeployFunction ¶
func (ptr *OpenFaaS) UndeployFunction(ctx context.Context, options *faas.UndeployFunctionOptions) error
UndeployFunction unddeploys a service from an environment
func (*OpenFaaS) UndeploySecret ¶
UndeploySecret unddeploys a secret from an environment
Click to show internal directories.
Click to hide internal directories.