Documentation
¶
Index ¶
- type YAMLRepository
- func (r *YAMLRepository) Archive(ctx context.Context, id string) error
- func (r *YAMLRepository) Claim(ctx context.Context, taskID, agentID string) (*task.Task, error)
- func (r *YAMLRepository) Create(ctx context.Context, t *task.Task) error
- func (r *YAMLRepository) Delete(ctx context.Context, id string) error
- func (r *YAMLRepository) Get(ctx context.Context, id string) (*task.Task, error)
- func (r *YAMLRepository) GetArchived(ctx context.Context, id string) (*task.Task, error)
- func (r *YAMLRepository) List(ctx context.Context, projectID, workflowID, statusID string, limit, offset int) ([]*task.Task, int, error)
- func (r *YAMLRepository) ListArchived(ctx context.Context, projectID, workflowID string, limit, offset int) ([]*task.Task, int, error)
- func (r *YAMLRepository) ReleaseByAgent(ctx context.Context, agentID string) ([]*task.Task, error)
- func (r *YAMLRepository) ReleaseByAgentExcept(ctx context.Context, agentID string, keepSet map[string]struct{}) ([]*task.Task, error)
- func (r *YAMLRepository) Unarchive(ctx context.Context, id string) error
- func (r *YAMLRepository) Update(ctx context.Context, t *task.Task) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YAMLRepository ¶
type YAMLRepository struct {
// contains filtered or unexported fields
}
func NewYAMLRepository ¶
func NewYAMLRepository(s storage.Storage) *YAMLRepository
func (*YAMLRepository) Archive ¶ added in v0.0.2
func (r *YAMLRepository) Archive(ctx context.Context, id string) error
func (*YAMLRepository) Delete ¶
func (r *YAMLRepository) Delete(ctx context.Context, id string) error
func (*YAMLRepository) GetArchived ¶ added in v0.0.2
func (*YAMLRepository) ListArchived ¶ added in v0.0.2
func (*YAMLRepository) ReleaseByAgent ¶
func (*YAMLRepository) ReleaseByAgentExcept ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.