Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commands ¶
type Commands struct { Create CreateHandler Update UpdateHandler Switch SwitchHandler Delete DeleteHandler }
func NewCommands ¶
type CreateCommand ¶
type CreateCommand struct { WorkspaceID string Image string ResourceSize notebook.ResourceSize }
type CreateHandler ¶
type CreateHandler interface {
Handle(context.Context, *CreateCommand) (string, error)
}
func NewCreateHandler ¶
func NewCreateHandler(svc domain.Service, factory *domain.Factory, workspaceService proto.WorkspaceServiceServer, storageOpts *storage.Options) CreateHandler
type DeleteCommand ¶
type DeleteHandler ¶
type DeleteHandler interface {
Handle(context.Context, *DeleteCommand) error
}
func NewDeleteHandler ¶
func NewDeleteHandler(svc domain.Service) DeleteHandler
type SwitchCommand ¶
type SwitchHandler ¶
type SwitchHandler interface {
Handle(context.Context, *SwitchCommand) error
}
func NewSwitchHandler ¶
func NewSwitchHandler(svc domain.Service) SwitchHandler
type UpdateCommand ¶
type UpdateCommand struct { ID string WorkspaceID string Image *string ResourceSize *notebook.ResourceSize }
type UpdateHandler ¶
type UpdateHandler interface {
Handle(context.Context, *UpdateCommand) error
}
func NewUpdateHandler ¶
func NewUpdateHandler(svc domain.Service) UpdateHandler
Click to show internal directories.
Click to hide internal directories.