serverless

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Resolver
	*module.Pluggable
	// contains filtered or unexported fields
}

func New

func New(serviceFactory *resource.ServiceFactory) (*Container, error)

func (*Container) Disable

func (r *Container) Disable() error

func (*Container) Enable

func (r *Container) Enable() error

type FunctionService

type FunctionService interface {
	List(namespace string) ([]*v1alpha1.Function, error)
	Delete(name string, namespace string) error
	Find(name string, namespace string) (*v1alpha1.Function, error)
	Create(name string, namespace string, labels gqlschema.Labels, size string, runtime string) (*v1alpha1.Function, error)
	Update(name string, namespace string, params gqlschema.FunctionUpdateInput) (*v1alpha1.Function, error)
}

type Kind

type Kind string
const (
	KindFunction  Kind = "Function"
	KindFunctions Kind = "Functions"
)

func (Kind) String

func (k Kind) String() string

type Resolver

type Resolver interface {
	FunctionsQuery(ctx context.Context, namespace string) ([]gqlschema.Function, error)
	FunctionQuery(ctx context.Context, name string, namespace string) (*gqlschema.Function, error)
	DeleteFunction(ctx context.Context, name string, namespace string) (*gqlschema.FunctionMutationOutput, error)
	CreateFunction(ctx context.Context, name string, namespace string, labels gqlschema.Labels, size string, runtime string) (*gqlschema.Function, error)
	UpdateFunction(ctx context.Context, name string, namespace string, params gqlschema.FunctionUpdateInput) (*gqlschema.Function, error)
}

Directories

Path Synopsis
Package mock_serverless is a generated GoMock package.
Package mock_serverless is a generated GoMock package.

Jump to

Keyboard shortcuts

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