Documentation
¶
Overview ¶
Package handlers implements the wsproxygen.StrictServerInterface for the internal management API (:9004). It is a thin HTTP adapter layer: each method translates a typed request object into a call on the SyncManager and returns a typed response object. All business logic and persistence lives in the syncmgr package.
Index ¶
- type Server
- func (s *Server) AdminCreateSandboxTemplate(ctx context.Context, ...) (wsproxygen.AdminCreateSandboxTemplateResponseObject, error)
- func (s *Server) AdminDeleteSandboxTemplate(ctx context.Context, ...) (wsproxygen.AdminDeleteSandboxTemplateResponseObject, error)
- func (s *Server) AdminUpdateSandboxTemplate(ctx context.Context, ...) (wsproxygen.AdminUpdateSandboxTemplateResponseObject, error)
- func (s *Server) CreateApiKey(ctx context.Context, request wsproxygen.CreateApiKeyRequestObject) (wsproxygen.CreateApiKeyResponseObject, error)
- func (s *Server) CreateImageDataset(ctx context.Context, request wsproxygen.CreateImageDatasetRequestObject) (wsproxygen.CreateImageDatasetResponseObject, error)
- func (s *Server) DeleteApiKey(ctx context.Context, request wsproxygen.DeleteApiKeyRequestObject) (wsproxygen.DeleteApiKeyResponseObject, error)
- func (s *Server) DeleteImageDataset(ctx context.Context, request wsproxygen.DeleteImageDatasetRequestObject) (wsproxygen.DeleteImageDatasetResponseObject, error)
- func (s *Server) GetSandboxTemplate(ctx context.Context, request wsproxygen.GetSandboxTemplateRequestObject) (wsproxygen.GetSandboxTemplateResponseObject, error)
- func (s *Server) ListImagesCatalog(ctx context.Context, _ wsproxygen.ListImagesCatalogRequestObject) (wsproxygen.ListImagesCatalogResponseObject, error)
- func (s *Server) ListMyApiKeys(ctx context.Context, request wsproxygen.ListMyApiKeysRequestObject) (wsproxygen.ListMyApiKeysResponseObject, error)
- func (s *Server) ListSandboxTemplates(ctx context.Context, _ wsproxygen.ListSandboxTemplatesRequestObject) (wsproxygen.ListSandboxTemplatesResponseObject, error)
- func (s *Server) UpdateImageDataset(ctx context.Context, request wsproxygen.UpdateImageDatasetRequestObject) (wsproxygen.UpdateImageDatasetResponseObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements wsproxygen.StrictServerInterface. It holds a reference to the SyncManager and delegates all operations to it.
func New ¶
func New(m *syncmgr.SyncManager) *Server
New creates a new handlers.Server backed by the given SyncManager.
func (*Server) AdminCreateSandboxTemplate ¶
func (s *Server) AdminCreateSandboxTemplate( ctx context.Context, request wsproxygen.AdminCreateSandboxTemplateRequestObject, ) (wsproxygen.AdminCreateSandboxTemplateResponseObject, error)
func (*Server) AdminDeleteSandboxTemplate ¶
func (s *Server) AdminDeleteSandboxTemplate( ctx context.Context, request wsproxygen.AdminDeleteSandboxTemplateRequestObject, ) (wsproxygen.AdminDeleteSandboxTemplateResponseObject, error)
func (*Server) AdminUpdateSandboxTemplate ¶
func (s *Server) AdminUpdateSandboxTemplate( ctx context.Context, request wsproxygen.AdminUpdateSandboxTemplateRequestObject, ) (wsproxygen.AdminUpdateSandboxTemplateResponseObject, error)
func (*Server) CreateApiKey ¶
func (s *Server) CreateApiKey( ctx context.Context, request wsproxygen.CreateApiKeyRequestObject, ) (wsproxygen.CreateApiKeyResponseObject, error)
func (*Server) CreateImageDataset ¶
func (s *Server) CreateImageDataset( ctx context.Context, request wsproxygen.CreateImageDatasetRequestObject, ) (wsproxygen.CreateImageDatasetResponseObject, error)
func (*Server) DeleteApiKey ¶
func (s *Server) DeleteApiKey( ctx context.Context, request wsproxygen.DeleteApiKeyRequestObject, ) (wsproxygen.DeleteApiKeyResponseObject, error)
func (*Server) DeleteImageDataset ¶
func (s *Server) DeleteImageDataset( ctx context.Context, request wsproxygen.DeleteImageDatasetRequestObject, ) (wsproxygen.DeleteImageDatasetResponseObject, error)
func (*Server) GetSandboxTemplate ¶
func (s *Server) GetSandboxTemplate( ctx context.Context, request wsproxygen.GetSandboxTemplateRequestObject, ) (wsproxygen.GetSandboxTemplateResponseObject, error)
func (*Server) ListImagesCatalog ¶
func (s *Server) ListImagesCatalog( ctx context.Context, _ wsproxygen.ListImagesCatalogRequestObject, ) (wsproxygen.ListImagesCatalogResponseObject, error)
func (*Server) ListMyApiKeys ¶
func (s *Server) ListMyApiKeys( ctx context.Context, request wsproxygen.ListMyApiKeysRequestObject, ) (wsproxygen.ListMyApiKeysResponseObject, error)
func (*Server) ListSandboxTemplates ¶
func (s *Server) ListSandboxTemplates( ctx context.Context, _ wsproxygen.ListSandboxTemplatesRequestObject, ) (wsproxygen.ListSandboxTemplatesResponseObject, error)
func (*Server) UpdateImageDataset ¶
func (s *Server) UpdateImageDataset( ctx context.Context, request wsproxygen.UpdateImageDatasetRequestObject, ) (wsproxygen.UpdateImageDatasetResponseObject, error)
Click to show internal directories.
Click to hide internal directories.