btrfaas

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(platform deployment.Platform) faas.FaaS

New creates a new FaaS instance

Types

type BtrFaaS

type BtrFaaS struct {
	// contains filtered or unexported fields
}

BtrFaaS is the btrfaas implementation of the FaaS interface

func (*BtrFaaS) DeployFunction

func (ptr *BtrFaaS) DeployFunction(ctx context.Context, options *faas.DeployFunctionOptions) error

DeployFunction deploys a service in an environment

func (*BtrFaaS) DeploySecret

func (ptr *BtrFaaS) DeploySecret(ctx context.Context, options *faas.DeploySecretOptions) error

DeploySecret deploys a secret in an environment

func (*BtrFaaS) Init

func (ptr *BtrFaaS) Init(ctx context.Context, options *faas.InitOptions) error

Init initializes the FaaS

func (*BtrFaaS) Invoke

func (ptr *BtrFaaS) Invoke(ctx context.Context, options *faas.InvokeOptions) error

Invoke calls a function

func (*BtrFaaS) ListFunctions

func (ptr *BtrFaaS) ListFunctions(ctx context.Context, options *faas.ListFunctionsOptions) ([]*faas.FunctionInfo, error)

ListFunctions returns a list of all deployed services

func (*BtrFaaS) ListSecrets

func (ptr *BtrFaaS) ListSecrets(ctx context.Context, options *faas.ListSecretsOptions) ([]*faas.SecretInfo, error)

ListSecrets returns a list of all deployed secrets

func (*BtrFaaS) ScaleFunction

func (ptr *BtrFaaS) ScaleFunction(ctx context.Context, options *faas.ScaleFunctionOptions) error

ScaleFunction scales the service

func (*BtrFaaS) Teardown

func (ptr *BtrFaaS) Teardown(ctx context.Context, options *faas.TeardownOptions) error

Teardown cleans the FaaS completely

func (*BtrFaaS) UndeployFunction

func (ptr *BtrFaaS) UndeployFunction(ctx context.Context, options *faas.UndeployFunctionOptions) error

UndeployFunction undeploys a service from an environment

func (*BtrFaaS) UndeploySecret

func (ptr *BtrFaaS) UndeploySecret(ctx context.Context, options *faas.UndeploySecretOptions) error

UndeploySecret unddeploys a secret from an environment

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL