Documentation ¶
Index ¶
- type InMemoryTaskRepository
- func (r *InMemoryTaskRepository) Create(ctx context.Context, task *entities.Task) error
- func (r *InMemoryTaskRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *InMemoryTaskRepository) FindAll(ctx context.Context) ([]*entities.Task, error)
- func (r *InMemoryTaskRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.Task, error)
- func (r *InMemoryTaskRepository) Update(ctx context.Context, task *entities.Task) error
- type InMemoryTaskRunRepository
- func (r *InMemoryTaskRunRepository) Create(ctx context.Context, taskRun *entities.TaskRun) error
- func (r *InMemoryTaskRunRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *InMemoryTaskRunRepository) FindAll(ctx context.Context) ([]*entities.TaskRun, error)
- func (r *InMemoryTaskRunRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.TaskRun, error)
- func (r *InMemoryTaskRunRepository) FindByTaskID(ctx context.Context, taskID uuid.UUID) ([]*entities.TaskRun, error)
- func (r *InMemoryTaskRunRepository) Update(ctx context.Context, taskRun *entities.TaskRun) error
- type InMemoryTeamRepository
- func (r *InMemoryTeamRepository) AddMember(ctx context.Context, teamID, userID uuid.UUID, role string) error
- func (r *InMemoryTeamRepository) Create(ctx context.Context, team *entities.Team) error
- func (r *InMemoryTeamRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *InMemoryTeamRepository) FindAll(ctx context.Context) ([]*entities.Team, error)
- func (r *InMemoryTeamRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.Team, error)
- func (r *InMemoryTeamRepository) RemoveMember(ctx context.Context, teamID, userID uuid.UUID) error
- func (r *InMemoryTeamRepository) Update(ctx context.Context, team *entities.Team) error
- func (r *InMemoryTeamRepository) UpdateMemberRole(ctx context.Context, teamID, userID uuid.UUID, role string) error
- type InMemoryUserRepository
- func (r *InMemoryUserRepository) Create(ctx context.Context, user *entities.User) error
- func (r *InMemoryUserRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *InMemoryUserRepository) FindAll(ctx context.Context) ([]*entities.User, error)
- func (r *InMemoryUserRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.User, error)
- func (r *InMemoryUserRepository) Update(ctx context.Context, user *entities.User) error
- type TriggerRepository
- func (r *TriggerRepository) Create(ctx context.Context, trigger *entities.Trigger) error
- func (r *TriggerRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *TriggerRepository) FindAll(ctx context.Context) ([]*entities.Trigger, error)
- func (r *TriggerRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.Trigger, error)
- func (r *TriggerRepository) Update(ctx context.Context, trigger *entities.Trigger) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryTaskRepository ¶
type InMemoryTaskRepository struct {
// contains filtered or unexported fields
}
InMemoryTaskRepository is an in-memory task repository.
func NewInMemoryTaskRepository ¶
func NewInMemoryTaskRepository() *InMemoryTaskRepository
NewInMemoryTaskRepository creates a new instance of InMemoryTaskRepository.
type InMemoryTaskRunRepository ¶
type InMemoryTaskRunRepository struct {
// contains filtered or unexported fields
}
InMemoryTaskRunRepository is an in-memory task run repository.
func NewInMemoryTaskRunRepository ¶
func NewInMemoryTaskRunRepository() *InMemoryTaskRunRepository
NewInMemoryTaskRunRepository creates a new instance of InMemoryTaskRunRepository.
func (*InMemoryTaskRunRepository) FindByID ¶
func (r *InMemoryTaskRunRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.TaskRun, error)
FindByID returns the task run with the specified ID.
func (*InMemoryTaskRunRepository) FindByTaskID ¶ added in v0.2.0
func (r *InMemoryTaskRunRepository) FindByTaskID(ctx context.Context, taskID uuid.UUID) ([]*entities.TaskRun, error)
FindByTaskID returns all task runs for a task.
type InMemoryTeamRepository ¶
type InMemoryTeamRepository struct {
// contains filtered or unexported fields
}
InMemoryTeamRepository is an in-memory repository that manages teams.
func NewInMemoryTeamRepository ¶
func NewInMemoryTeamRepository() *InMemoryTeamRepository
NewInMemoryTeamRepository creates a new in-memory team repository.
func (*InMemoryTeamRepository) AddMember ¶
func (r *InMemoryTeamRepository) AddMember(ctx context.Context, teamID, userID uuid.UUID, role string) error
AddMember adds a member to a team.
func (*InMemoryTeamRepository) FindByID ¶
func (r *InMemoryTeamRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.Team, error)
FindByID returns the team with the specified ID.
func (*InMemoryTeamRepository) RemoveMember ¶
RemoveMember removes a member from a team.
func (*InMemoryTeamRepository) UpdateMemberRole ¶
func (r *InMemoryTeamRepository) UpdateMemberRole(ctx context.Context, teamID, userID uuid.UUID, role string) error
UpdateMemberRole updates the role of a member in a team.
type InMemoryUserRepository ¶
type InMemoryUserRepository struct {
// contains filtered or unexported fields
}
InMemoryUserRepository is an in-memory user repository.
func NewInMemoryUserRepository ¶
func NewInMemoryUserRepository() *InMemoryUserRepository
NewInMemoryUserRepository creates a new in-memory user repository.
type TriggerRepository ¶
type TriggerRepository struct {
// contains filtered or unexported fields
}
TriggerRepository is a repository that manages triggers in memory.
func NewInMemoryTriggerRepository ¶
func NewInMemoryTriggerRepository() *TriggerRepository
NewInMemoryTriggerRepository creates a new in-memory trigger repository.