client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TokenHeaderName = "cookie"

Variables

This section is empty.

Functions

func AuthWithToken

func AuthWithToken(token string) runtime.ClientAuthInfoWriter

func AuthWithUserPassword

func AuthWithUserPassword(username string, password string) runtime.ClientAuthInfoWriter

Types

type DefaultFunctionsClient

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

func (*DefaultFunctionsClient) CreateFunction

func (c *DefaultFunctionsClient) CreateFunction(ctx context.Context, function *Function) (*Function, error)

func (*DefaultFunctionsClient) DeleteFunction

func (c *DefaultFunctionsClient) DeleteFunction(ctx context.Context, functionName string) (*Function, error)

func (*DefaultFunctionsClient) GetFunction

func (c *DefaultFunctionsClient) GetFunction(ctx context.Context, functionName string) (*Function, error)

func (*DefaultFunctionsClient) GetFunctionRun

func (c *DefaultFunctionsClient) GetFunctionRun(ctx context.Context, functionName string, runName string) (*FunctionRun, error)

func (*DefaultFunctionsClient) ListFunctionRuns

func (c *DefaultFunctionsClient) ListFunctionRuns(ctx context.Context, functionName string) ([]FunctionRun, error)

func (*DefaultFunctionsClient) ListFunctions

func (c *DefaultFunctionsClient) ListFunctions(ctx context.Context) ([]Function, error)

func (*DefaultFunctionsClient) ListRuns

func (c *DefaultFunctionsClient) ListRuns(ctx context.Context) ([]FunctionRun, error)

func (*DefaultFunctionsClient) RunFunction

func (c *DefaultFunctionsClient) RunFunction(ctx context.Context, run *FunctionRun) (*FunctionRun, error)

func (*DefaultFunctionsClient) UpdateFunction

func (c *DefaultFunctionsClient) UpdateFunction(ctx context.Context, function *Function) (*Function, error)

type Function

type Function struct {
	models.Function
}

type FunctionRun

type FunctionRun struct {
	models.Run
}

type FunctionsClient

type FunctionsClient interface {
	// Function Runner
	RunFunction(context.Context, *FunctionRun) (*FunctionRun, error)
	GetFunctionRun(ctx context.Context, functionName string, runName string) (*FunctionRun, error)
	ListRuns(context.Context) ([]FunctionRun, error)
	ListFunctionRuns(context.Context, string) ([]FunctionRun, error)

	// Function store
	CreateFunction(context.Context, *Function) (*Function, error)
	DeleteFunction(context.Context, string) (*Function, error)
	GetFunction(context.Context, string) (*Function, error)
	ListFunctions(context.Context) ([]Function, error)
	UpdateFunction(context.Context, *Function) (*Function, error)
}

func NewFunctionsClient

func NewFunctionsClient(path string, auth runtime.ClientAuthInfoWriter) FunctionsClient

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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