modules

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	entropyv1beta1.UnimplementedModuleServiceServer
	// contains filtered or unexported fields
}

func NewAPIServer

func NewAPIServer(moduleService ModuleService) *APIServer

func (*APIServer) CreateModule

func (*APIServer) DeleteModule

func (*APIServer) GetModule

func (*APIServer) ListModules

func (*APIServer) UpdateModule

type ModuleService

type ModuleService interface {
	GetModule(ctx context.Context, urn string) (*module.Module, error)
	ListModules(ctx context.Context, project string) ([]module.Module, error)
	CreateModule(ctx context.Context, mod module.Module) (*module.Module, error)
	UpdateModule(ctx context.Context, urn string, newConfigs json.RawMessage) (*module.Module, error)
	DeleteModule(ctx context.Context, urn string) error
}

Jump to

Keyboard shortcuts

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