Documentation ¶
Index ¶
- type APIServer
- func (srv *APIServer) CreateModule(ctx context.Context, request *entropyv1beta1.CreateModuleRequest) (*entropyv1beta1.CreateModuleResponse, error)
- func (srv *APIServer) DeleteModule(ctx context.Context, request *entropyv1beta1.DeleteModuleRequest) (*entropyv1beta1.DeleteModuleResponse, error)
- func (srv *APIServer) GetModule(ctx context.Context, request *entropyv1beta1.GetModuleRequest) (*entropyv1beta1.GetModuleResponse, error)
- func (srv *APIServer) ListModules(ctx context.Context, request *entropyv1beta1.ListModulesRequest) (*entropyv1beta1.ListModulesResponse, error)
- func (srv *APIServer) UpdateModule(ctx context.Context, request *entropyv1beta1.UpdateModuleRequest) (*entropyv1beta1.UpdateModuleResponse, error)
- type ModuleService
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 (srv *APIServer) CreateModule(ctx context.Context, request *entropyv1beta1.CreateModuleRequest) (*entropyv1beta1.CreateModuleResponse, error)
func (*APIServer) DeleteModule ¶
func (srv *APIServer) DeleteModule(ctx context.Context, request *entropyv1beta1.DeleteModuleRequest) (*entropyv1beta1.DeleteModuleResponse, error)
func (*APIServer) GetModule ¶
func (srv *APIServer) GetModule(ctx context.Context, request *entropyv1beta1.GetModuleRequest) (*entropyv1beta1.GetModuleResponse, error)
func (*APIServer) ListModules ¶
func (srv *APIServer) ListModules(ctx context.Context, request *entropyv1beta1.ListModulesRequest) (*entropyv1beta1.ListModulesResponse, error)
func (*APIServer) UpdateModule ¶
func (srv *APIServer) UpdateModule(ctx context.Context, request *entropyv1beta1.UpdateModuleRequest) (*entropyv1beta1.UpdateModuleResponse, error)
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 }
Click to show internal directories.
Click to hide internal directories.