function

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortFunctions

func SortFunctions(in []*v1alpha1.Function) []*v1alpha1.Function

func ToGQL

func ToGQL(item *v1alpha1.Function) *gqlschema.Function

func ToGQLs

func ToGQLs(in []*v1alpha1.Function) []gqlschema.Function

Types

type Service

type Service struct {
	*resource.Service
}

func NewService

func NewService(serviceFactory *resource.ServiceFactory) *Service

func (*Service) Create

func (svc *Service) Create(name, namespace string, labels gqlschema.Labels, size, runtime string) (*v1alpha1.Function, error)

func (*Service) Delete

func (svc *Service) Delete(name, namespace string) error

func (*Service) Find

func (svc *Service) Find(name, namespace string) (*v1alpha1.Function, error)

func (*Service) List

func (svc *Service) List(namespace string) ([]*v1alpha1.Function, error)

func (*Service) Update

func (svc *Service) Update(name, namespace string, params gqlschema.FunctionUpdateInput) (*v1alpha1.Function, error)

Jump to

Keyboard shortcuts

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