Documentation ¶
Index ¶
- func TaskToDto(t core.Task) oas.Task
- type Client
- func (client *Client) Events() core.Broker
- func (client *Client) Resources() core.ResourceDB
- func (client *Client) Spawn(ctx context.Context, t core.Task) (core.Task, error)
- func (client *Client) Specifications() *SpecificationStorage
- func (client *Client) Task(ctx context.Context, id string) (core.Task, error)
- func (client *Client) Tasks() core.TaskDB
- func (client *Client) Types() *SpecificationStorage
- type Server
- func (server *Server) PostResourcesAllocate(ctx context.Context, request oas.PostResourcesAllocateRequestObject) (oas.PostResourcesAllocateResponseObject, error)
- func (server *Server) PostResourcesDeallocate(ctx context.Context, request oas.PostResourcesDeallocateRequestObject) (oas.PostResourcesDeallocateResponseObject, error)
- func (server *Server) PostResourcesInitialize(ctx context.Context, request oas.PostResourcesInitializeRequestObject) (oas.PostResourcesInitializeResponseObject, error)
- func (server *Server) PostResourcesLoad(ctx context.Context, request oas.PostResourcesLoadRequestObject) (oas.PostResourcesLoadResponseObject, error)
- func (server *Server) PostTasksLoad(ctx context.Context, request oas.PostTasksLoadRequestObject) (oas.PostTasksLoadResponseObject, error)
- func (server *Server) PostTasksRestart(ctx context.Context, request oas.PostTasksRestartRequestObject) (oas.PostTasksRestartResponseObject, error)
- func (server *Server) PostTasksSpawn(ctx context.Context, request oas.PostTasksSpawnRequestObject) (oas.PostTasksSpawnResponseObject, error)
- func (server *Server) PostTasksSpawnFromSpec(ctx context.Context, request oas.PostTasksSpawnFromSpecRequestObject) (oas.PostTasksSpawnFromSpecResponseObject, error)
- func (server *Server) PostTasksSpecificationsCreate(ctx context.Context, request oas.PostTasksSpecificationsCreateRequestObject) (oas.PostTasksSpecificationsCreateResponseObject, error)
- func (server *Server) PostTasksSpecificationsGet(ctx context.Context, request oas.PostTasksSpecificationsGetRequestObject) (oas.PostTasksSpecificationsGetResponseObject, error)
- func (server *Server) PostTasksSpecificationsGetAll(ctx context.Context, request oas.PostTasksSpecificationsGetAllRequestObject) (oas.PostTasksSpecificationsGetAllResponseObject, error)
- func (server *Server) PostTasksSpecificationsRemove(ctx context.Context, request oas.PostTasksSpecificationsRemoveRequestObject) (oas.PostTasksSpecificationsRemoveResponseObject, error)
- func (server *Server) PostTasksSpecificationsTypesCreate(ctx context.Context, ...) (oas.PostTasksSpecificationsTypesCreateResponseObject, error)
- func (server *Server) PostTasksSpecificationsTypesGet(ctx context.Context, request oas.PostTasksSpecificationsTypesGetRequestObject) (oas.PostTasksSpecificationsTypesGetResponseObject, error)
- func (server *Server) PostTasksSpecificationsTypesGetAll(ctx context.Context, ...) (oas.PostTasksSpecificationsTypesGetAllResponseObject, error)
- func (server *Server) PostTasksSpecificationsTypesRemove(ctx context.Context, ...) (oas.PostTasksSpecificationsTypesRemoveResponseObject, error)
- func (server *Server) PostTasksStorageDelete(ctx context.Context, request oas.PostTasksStorageDeleteRequestObject) (oas.PostTasksStorageDeleteResponseObject, error)
- func (server *Server) PostTasksStorageExec(ctx context.Context, request oas.PostTasksStorageExecRequestObject) (oas.PostTasksStorageExecResponseObject, error)
- func (server *Server) PostTasksStorageGetByIds(ctx context.Context, request oas.PostTasksStorageGetByIdsRequestObject) (oas.PostTasksStorageGetByIdsResponseObject, error)
- func (server *Server) PostTasksStorageGetWithProperties(ctx context.Context, ...) (oas.PostTasksStorageGetWithPropertiesResponseObject, error)
- func (server *Server) PostTasksStorageInsert(ctx context.Context, request oas.PostTasksStorageInsertRequestObject) (oas.PostTasksStorageInsertResponseObject, error)
- func (server *Server) PostTasksStorageSettings(ctx context.Context, request oas.PostTasksStorageSettingsRequestObject) (oas.PostTasksStorageSettingsResponseObject, error)
- func (server *Server) PostTasksStorageUpdateByIds(ctx context.Context, request oas.PostTasksStorageUpdateByIdsRequestObject) (oas.PostTasksStorageUpdateByIdsResponseObject, error)
- func (server *Server) PostTasksStorageUpdateWithProperties(ctx context.Context, ...) (oas.PostTasksStorageUpdateWithPropertiesResponseObject, error)
- type SpecificationStorage
- func (storage *SpecificationStorage) Add(ctx context.Context, spec specification.Specification) error
- func (storage *SpecificationStorage) Get(ctx context.Context, id string) (specification.Specification, error)
- func (storage *SpecificationStorage) GetAll(ctx context.Context) ([]specification.Specification, error)
- func (storage *SpecificationStorage) Remove(ctx context.Context, id string) error
- type TypeStorage
- func (storage *TypeStorage) Add(ctx context.Context, typ specification.TypeWithID) error
- func (storage *TypeStorage) Get(ctx context.Context, id string) (specification.TypeWithID, error)
- func (storage *TypeStorage) GetAll(ctx context.Context) ([]specification.TypeWithID, error)
- func (storage *TypeStorage) Remove(ctx context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(clientInterface oas.ClientWithResponsesInterface) *Client
func (*Client) Resources ¶
func (client *Client) Resources() core.ResourceDB
func (*Client) Specifications ¶
func (client *Client) Specifications() *SpecificationStorage
func (*Client) Types ¶
func (client *Client) Types() *SpecificationStorage
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(system core.AbstractSystem, specifications *specification.Manager) *Server
func (*Server) PostResourcesAllocate ¶
func (server *Server) PostResourcesAllocate(ctx context.Context, request oas.PostResourcesAllocateRequestObject) (oas.PostResourcesAllocateResponseObject, error)
func (*Server) PostResourcesDeallocate ¶
func (server *Server) PostResourcesDeallocate(ctx context.Context, request oas.PostResourcesDeallocateRequestObject) (oas.PostResourcesDeallocateResponseObject, error)
func (*Server) PostResourcesInitialize ¶
func (server *Server) PostResourcesInitialize(ctx context.Context, request oas.PostResourcesInitializeRequestObject) (oas.PostResourcesInitializeResponseObject, error)
func (*Server) PostResourcesLoad ¶
func (server *Server) PostResourcesLoad(ctx context.Context, request oas.PostResourcesLoadRequestObject) (oas.PostResourcesLoadResponseObject, error)
func (*Server) PostTasksLoad ¶
func (server *Server) PostTasksLoad(ctx context.Context, request oas.PostTasksLoadRequestObject) (oas.PostTasksLoadResponseObject, error)
func (*Server) PostTasksRestart ¶
func (server *Server) PostTasksRestart(ctx context.Context, request oas.PostTasksRestartRequestObject) (oas.PostTasksRestartResponseObject, error)
func (*Server) PostTasksSpawn ¶
func (server *Server) PostTasksSpawn(ctx context.Context, request oas.PostTasksSpawnRequestObject) (oas.PostTasksSpawnResponseObject, error)
func (*Server) PostTasksSpawnFromSpec ¶
func (server *Server) PostTasksSpawnFromSpec(ctx context.Context, request oas.PostTasksSpawnFromSpecRequestObject) (oas.PostTasksSpawnFromSpecResponseObject, error)
func (*Server) PostTasksSpecificationsCreate ¶
func (server *Server) PostTasksSpecificationsCreate(ctx context.Context, request oas.PostTasksSpecificationsCreateRequestObject) (oas.PostTasksSpecificationsCreateResponseObject, error)
func (*Server) PostTasksSpecificationsGet ¶
func (server *Server) PostTasksSpecificationsGet(ctx context.Context, request oas.PostTasksSpecificationsGetRequestObject) (oas.PostTasksSpecificationsGetResponseObject, error)
func (*Server) PostTasksSpecificationsGetAll ¶
func (server *Server) PostTasksSpecificationsGetAll(ctx context.Context, request oas.PostTasksSpecificationsGetAllRequestObject) (oas.PostTasksSpecificationsGetAllResponseObject, error)
func (*Server) PostTasksSpecificationsRemove ¶
func (server *Server) PostTasksSpecificationsRemove(ctx context.Context, request oas.PostTasksSpecificationsRemoveRequestObject) (oas.PostTasksSpecificationsRemoveResponseObject, error)
func (*Server) PostTasksSpecificationsTypesCreate ¶
func (server *Server) PostTasksSpecificationsTypesCreate(ctx context.Context, request oas.PostTasksSpecificationsTypesCreateRequestObject) (oas.PostTasksSpecificationsTypesCreateResponseObject, error)
func (*Server) PostTasksSpecificationsTypesGet ¶
func (server *Server) PostTasksSpecificationsTypesGet(ctx context.Context, request oas.PostTasksSpecificationsTypesGetRequestObject) (oas.PostTasksSpecificationsTypesGetResponseObject, error)
func (*Server) PostTasksSpecificationsTypesGetAll ¶
func (server *Server) PostTasksSpecificationsTypesGetAll(ctx context.Context, request oas.PostTasksSpecificationsTypesGetAllRequestObject) (oas.PostTasksSpecificationsTypesGetAllResponseObject, error)
func (*Server) PostTasksSpecificationsTypesRemove ¶
func (server *Server) PostTasksSpecificationsTypesRemove(ctx context.Context, request oas.PostTasksSpecificationsTypesRemoveRequestObject) (oas.PostTasksSpecificationsTypesRemoveResponseObject, error)
func (*Server) PostTasksStorageDelete ¶
func (server *Server) PostTasksStorageDelete(ctx context.Context, request oas.PostTasksStorageDeleteRequestObject) (oas.PostTasksStorageDeleteResponseObject, error)
func (*Server) PostTasksStorageExec ¶
func (server *Server) PostTasksStorageExec(ctx context.Context, request oas.PostTasksStorageExecRequestObject) (oas.PostTasksStorageExecResponseObject, error)
func (*Server) PostTasksStorageGetByIds ¶
func (server *Server) PostTasksStorageGetByIds(ctx context.Context, request oas.PostTasksStorageGetByIdsRequestObject) (oas.PostTasksStorageGetByIdsResponseObject, error)
func (*Server) PostTasksStorageGetWithProperties ¶
func (server *Server) PostTasksStorageGetWithProperties(ctx context.Context, request oas.PostTasksStorageGetWithPropertiesRequestObject) (oas.PostTasksStorageGetWithPropertiesResponseObject, error)
func (*Server) PostTasksStorageInsert ¶
func (server *Server) PostTasksStorageInsert(ctx context.Context, request oas.PostTasksStorageInsertRequestObject) (oas.PostTasksStorageInsertResponseObject, error)
func (*Server) PostTasksStorageSettings ¶
func (server *Server) PostTasksStorageSettings(ctx context.Context, request oas.PostTasksStorageSettingsRequestObject) (oas.PostTasksStorageSettingsResponseObject, error)
func (*Server) PostTasksStorageUpdateByIds ¶
func (server *Server) PostTasksStorageUpdateByIds(ctx context.Context, request oas.PostTasksStorageUpdateByIdsRequestObject) (oas.PostTasksStorageUpdateByIdsResponseObject, error)
func (*Server) PostTasksStorageUpdateWithProperties ¶
func (server *Server) PostTasksStorageUpdateWithProperties(ctx context.Context, request oas.PostTasksStorageUpdateWithPropertiesRequestObject) (oas.PostTasksStorageUpdateWithPropertiesResponseObject, error)
type SpecificationStorage ¶
type SpecificationStorage struct {
// contains filtered or unexported fields
}
func (*SpecificationStorage) Add ¶
func (storage *SpecificationStorage) Add(ctx context.Context, spec specification.Specification) error
func (*SpecificationStorage) Get ¶
func (storage *SpecificationStorage) Get(ctx context.Context, id string) (specification.Specification, error)
func (*SpecificationStorage) GetAll ¶
func (storage *SpecificationStorage) GetAll(ctx context.Context) ([]specification.Specification, error)
type TypeStorage ¶
type TypeStorage struct {
// contains filtered or unexported fields
}
func (*TypeStorage) Add ¶
func (storage *TypeStorage) Add(ctx context.Context, typ specification.TypeWithID) error
func (*TypeStorage) Get ¶
func (storage *TypeStorage) Get(ctx context.Context, id string) (specification.TypeWithID, error)
func (*TypeStorage) GetAll ¶
func (storage *TypeStorage) GetAll(ctx context.Context) ([]specification.TypeWithID, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.