serverless

package
v0.0.0-...-6f0f11f Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UsageKind string `envconfig:"default=function"`
}

type GitRepositoryList

type GitRepositoryList []*v1alpha1.GitRepository

func (*GitRepositoryList) Append

func (l *GitRepositoryList) Append() interface{}

type NewResolver

type NewResolver struct {
	*resource.Module
}

func NewR

Temporary name - change it when old implementation will be rewritten

func (*NewResolver) CreateGitRepository

func (r *NewResolver) CreateGitRepository(ctx context.Context, namespace, name string, spec v1alpha1.GitRepositorySpec) (*v1alpha1.GitRepository, error)

func (*NewResolver) DeleteGitRepository

func (r *NewResolver) DeleteGitRepository(ctx context.Context, namespace string, name string) (*v1alpha1.GitRepository, error)

func (*NewResolver) GitRepositoriesQuery

func (r *NewResolver) GitRepositoriesQuery(ctx context.Context, namespace string) ([]*v1alpha1.GitRepository, error)

func (*NewResolver) GitRepositoryQuery

func (r *NewResolver) GitRepositoryQuery(ctx context.Context, namespace, name string) (*v1alpha1.GitRepository, error)

func (*NewResolver) GitRepositoryService

func (r *NewResolver) GitRepositoryService() *resource.GenericService

func (*NewResolver) UpdateGitRepository

func (r *NewResolver) UpdateGitRepository(ctx context.Context, namespace, name string, spec v1alpha1.GitRepositorySpec) (*v1alpha1.GitRepository, error)

type PluggableContainer

type PluggableContainer struct {
	*module.Pluggable

	Resolver
	// contains filtered or unexported fields
}

func New

func (*PluggableContainer) Disable

func (r *PluggableContainer) Disable() error

func (*PluggableContainer) Enable

func (r *PluggableContainer) Enable() error

type Resolver

type Resolver interface {
	FunctionQuery(ctx context.Context, name string, namespace string) (*gqlschema.Function, error)
	FunctionsQuery(ctx context.Context, namespace string) ([]*gqlschema.Function, error)

	CreateFunction(ctx context.Context, name string, namespace string, params gqlschema.FunctionMutationInput) (*gqlschema.Function, error)
	UpdateFunction(ctx context.Context, name string, namespace string, params gqlschema.FunctionMutationInput) (*gqlschema.Function, error)
	DeleteFunction(ctx context.Context, namespace string, function gqlschema.FunctionMetadataInput) (*gqlschema.FunctionMetadata, error)
	DeleteManyFunctions(ctx context.Context, namespace string, functions []*gqlschema.FunctionMetadataInput) ([]*gqlschema.FunctionMetadata, error)

	FunctionEventSubscription(ctx context.Context, namespace string, functionName *string) (<-chan *gqlschema.FunctionEvent, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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