openfaas

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: 6 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 OpenFaaS

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

OpenFaaS is the btrfaas implementation of the FaaS interface

func (*OpenFaaS) DeployFunction

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

DeployFunction deploys a service in an environment

func (*OpenFaaS) DeploySecret

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

DeploySecret deploys a secret in an environment

func (*OpenFaaS) Init

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

Init initializes the FaaS

func (*OpenFaaS) Invoke

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

Invoke calls a function

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

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

ScaleFunction scales the service

func (*OpenFaaS) Teardown

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

Teardown cleans the FaaS completely

func (*OpenFaaS) UndeployFunction

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

UndeployFunction unddeploys a service from an environment

func (*OpenFaaS) UndeploySecret

func (ptr *OpenFaaS) 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