Documentation ¶
Index ¶
- func MakeComputeCreateExecutorEndpoint(s Service) endpoint.Endpoint
- func MakeComputeCreateProjectEndpoint(s Service) endpoint.Endpoint
- func MakeComputeCreateTaskEndpoint(s Service) endpoint.Endpoint
- func MakeComputeDeleteExecutorEndpoint(s Service) endpoint.Endpoint
- func MakeComputeDeleteProjectByIDEndpoint(s Service) endpoint.Endpoint
- func MakeComputeDeleteTaskEndpoint(s Service) endpoint.Endpoint
- func MakeComputeGetExecutorEndpoint(s Service) endpoint.Endpoint
- func MakeComputeGetProjectEndpoint(s Service) endpoint.Endpoint
- func MakeComputeGetTaskEndpoint(s Service) endpoint.Endpoint
- func MakeComputeListExecutorsEndpoint(s Service) endpoint.Endpoint
- func MakeComputeListProjectsEndpoint(s Service) endpoint.Endpoint
- func MakeComputePopReadyTaskEndpoint(s Service) endpoint.Endpoint
- func MakeComputeUpdateTaskEndpoint(s Service) endpoint.Endpoint
- type Endpoints
- func (e Endpoints) CreateExecutor(ctx context.Context, name string, pack string, data []byte) (*project.Executor, error)
- func (e Endpoints) CreateProject(ctx context.Context, name string) (*project.Project, error)
- func (e Endpoints) CreateTask(ctx context.Context, projID project.ProjectID, execID project.ExecutorID, ...) (*project.Task, error)
- func (e Endpoints) DeleteExecutorByID(ctx context.Context, execID project.ExecutorID) error
- func (e Endpoints) DeleteProjectByID(ctx context.Context, id project.ProjectID) error
- func (e Endpoints) DeleteTaskByID(ctx context.Context, id project.TaskID) error
- func (e Endpoints) GetExecutorByID(ctx context.Context, execID project.ExecutorID) (*project.Executor, error)
- func (e Endpoints) GetProjectByID(ctx context.Context, id project.ProjectID) (*project.Project, error)
- func (e Endpoints) GetTaskByID(ctx context.Context, id project.TaskID) (*project.Task, error)
- func (e Endpoints) ListExecutors(ctx context.Context) ([]*project.Executor, error)
- func (e Endpoints) ListProjects(ctx context.Context) ([]*project.Project, error)
- func (e Endpoints) PopReadyTask(ctx context.Context) (*project.Task, error)
- func (e Endpoints) UpdateTaskByID(ctx context.Context, id project.TaskID, task *project.Task) (*project.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Endpoints ¶
type Endpoints struct { ComputeCreateExecutorEndpoint endpoint.Endpoint ComputeDeleteExecutorByIDEndpoint endpoint.Endpoint ComputeGetExecutorByIDEndpoint endpoint.Endpoint ComputeListExecutorsEndpoint endpoint.Endpoint ComputeCreateProjectEndpoint endpoint.Endpoint ComputeDeleteProjectByIDEndpoint endpoint.Endpoint ComputeGetProjectByIDEndpoint endpoint.Endpoint ComputeListProjectsEndpoint endpoint.Endpoint ComputeCreateTaskEndpoint endpoint.Endpoint ComputeDeleteTaskByIDEndpoint endpoint.Endpoint ComputeGetTaskByIDEndpoint endpoint.Endpoint ComputeUpdateTaskByIDEndpoint endpoint.Endpoint ComputePopReadyTaskEndpoint endpoint.Endpoint }
func MakeClientEndpoints ¶
func MakeClientEndpoints( instance string, encodeRequestFactory jhttptransport.EncodeRequestFuncMiddleware, decodeResponseFactory jhttptransport.DecodeResponseFuncMiddleware, opts []httptransport.ClientOption) (Endpoints, error)
func (Endpoints) CreateExecutor ¶
func (Endpoints) CreateProject ¶
func (Endpoints) CreateTask ¶
func (Endpoints) DeleteExecutorByID ¶
func (Endpoints) DeleteProjectByID ¶
func (Endpoints) DeleteTaskByID ¶
func (Endpoints) GetExecutorByID ¶
func (Endpoints) GetProjectByID ¶
func (Endpoints) GetTaskByID ¶
func (Endpoints) ListExecutors ¶
func (Endpoints) ListProjects ¶
func (Endpoints) PopReadyTask ¶
Click to show internal directories.
Click to hide internal directories.