repositoryimpl

package
v0.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func (r *YAMLRepository) Archive(ctx context.Context, id string) error

func (*YAMLRepository) Claim

func (r *YAMLRepository) Claim(ctx context.Context, taskID, agentID string) (*task.Task, error)

func (*YAMLRepository) Create

func (r *YAMLRepository) Create(ctx context.Context, t *task.Task) error

func (*YAMLRepository) Delete

func (r *YAMLRepository) Delete(ctx context.Context, id string) error

func (*YAMLRepository) Get

func (r *YAMLRepository) Get(ctx context.Context, id string) (*task.Task, error)

func (*YAMLRepository) GetArchived

func (r *YAMLRepository) GetArchived(ctx context.Context, id string) (*task.Task, error)

func (*YAMLRepository) List

func (r *YAMLRepository) List(ctx context.Context, projectID, workflowID, statusID string, limit, offset int) ([]*task.Task, int, error)

func (*YAMLRepository) ListArchived

func (r *YAMLRepository) ListArchived(ctx context.Context, projectID, workflowID string, limit, offset int) ([]*task.Task, int, error)

func (*YAMLRepository) ReleaseByAgent

func (r *YAMLRepository) ReleaseByAgent(ctx context.Context, agentID string) ([]*task.Task, error)

func (*YAMLRepository) ReleaseByAgentExcept

func (r *YAMLRepository) ReleaseByAgentExcept(ctx context.Context, agentID string, keepSet map[string]struct{}) ([]*task.Task, error)

func (*YAMLRepository) Unarchive

func (r *YAMLRepository) Unarchive(ctx context.Context, id string) error

func (*YAMLRepository) Update

func (r *YAMLRepository) Update(ctx context.Context, t *task.Task) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL