Documentation ¶
Index ¶
- type InMemoryOrganizationRepository
- func (r *InMemoryOrganizationRepository) AddMember(ctx context.Context, organizationID, userID uuid.UUID, role string) error
- func (r *InMemoryOrganizationRepository) AddTeam(ctx context.Context, organizationID, teamID uuid.UUID) error
- func (r *InMemoryOrganizationRepository) Create(ctx context.Context, organization *entities.Organization) error
- func (r *InMemoryOrganizationRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *InMemoryOrganizationRepository) FindAll(ctx context.Context) ([]*entities.Organization, error)
- func (r *InMemoryOrganizationRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.Organization, error)
- func (r *InMemoryOrganizationRepository) FindMember(ctx context.Context, organizationID, userID uuid.UUID) (*entities.OrganizationMember, error)
- func (r *InMemoryOrganizationRepository) FindMemberMemberships(ctx context.Context, userID uuid.UUID) ([]*entities.OrganizationMember, error)
- func (r *InMemoryOrganizationRepository) FindMembers(ctx context.Context, organizationID uuid.UUID) ([]*entities.OrganizationMember, error)
- func (r *InMemoryOrganizationRepository) RemoveMember(ctx context.Context, organizationID, userID uuid.UUID) error
- func (r *InMemoryOrganizationRepository) RemoveTeam(ctx context.Context, organizationID, teamID uuid.UUID) error
- func (r *InMemoryOrganizationRepository) Update(ctx context.Context, organization *entities.Organization) error
- func (r *InMemoryOrganizationRepository) UpdateMemberRole(ctx context.Context, organizationID, userID uuid.UUID, role string) error
- 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, scope *entities.TaskScope) ([]*entities.Task, error)
- func (r *InMemoryTaskRepository) FindByID(ctx context.Context, id uuid.UUID, scope *entities.TaskScope) (*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) FindMember(ctx context.Context, teamID, userID uuid.UUID) (*entities.TeamMember, error)
- func (r *InMemoryTeamRepository) FindMemberMemberships(ctx context.Context, userID uuid.UUID) ([]*entities.TeamMember, error)
- func (r *InMemoryTeamRepository) FindMembers(ctx context.Context, teamID uuid.UUID) ([]*entities.TeamMember, 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) FindByEmail(ctx context.Context, email string) (*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 InMemoryOrganizationRepository ¶ added in v0.5.0
type InMemoryOrganizationRepository struct {
// contains filtered or unexported fields
}
func NewInMemoryOrganizationRepository ¶ added in v0.5.0
func NewInMemoryOrganizationRepository() *InMemoryOrganizationRepository
func (*InMemoryOrganizationRepository) Create ¶ added in v0.5.0
func (r *InMemoryOrganizationRepository) Create(ctx context.Context, organization *entities.Organization) error
func (*InMemoryOrganizationRepository) FindAll ¶ added in v0.5.0
func (r *InMemoryOrganizationRepository) FindAll(ctx context.Context) ([]*entities.Organization, error)
func (*InMemoryOrganizationRepository) FindByID ¶ added in v0.5.0
func (r *InMemoryOrganizationRepository) FindByID(ctx context.Context, id uuid.UUID) (*entities.Organization, error)
func (*InMemoryOrganizationRepository) FindMember ¶ added in v0.5.0
func (r *InMemoryOrganizationRepository) FindMember(ctx context.Context, organizationID, userID uuid.UUID) (*entities.OrganizationMember, error)
func (*InMemoryOrganizationRepository) FindMemberMemberships ¶ added in v0.5.0
func (r *InMemoryOrganizationRepository) FindMemberMemberships(ctx context.Context, userID uuid.UUID) ([]*entities.OrganizationMember, error)
func (*InMemoryOrganizationRepository) FindMembers ¶ added in v0.5.0
func (r *InMemoryOrganizationRepository) FindMembers(ctx context.Context, organizationID uuid.UUID) ([]*entities.OrganizationMember, error)
func (*InMemoryOrganizationRepository) RemoveMember ¶ added in v0.5.0
func (*InMemoryOrganizationRepository) RemoveTeam ¶ added in v0.5.0
func (*InMemoryOrganizationRepository) Update ¶ added in v0.5.0
func (r *InMemoryOrganizationRepository) Update(ctx context.Context, organization *entities.Organization) error
func (*InMemoryOrganizationRepository) UpdateMemberRole ¶ added in v0.5.0
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.
func (*InMemoryTaskRepository) FindAll ¶
func (r *InMemoryTaskRepository) FindAll(ctx context.Context, scope *entities.TaskScope) ([]*entities.Task, error)
FindAll returns all tasks in the repository.
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) FindMember ¶ added in v0.5.0
func (r *InMemoryTeamRepository) FindMember(ctx context.Context, teamID, userID uuid.UUID) (*entities.TeamMember, error)
FindMember returns a member of a team.
func (*InMemoryTeamRepository) FindMemberMemberships ¶ added in v0.5.0
func (r *InMemoryTeamRepository) FindMemberMemberships(ctx context.Context, userID uuid.UUID) ([]*entities.TeamMember, error)
FindMemberMemberships returns all memberships of a member.
func (*InMemoryTeamRepository) FindMembers ¶ added in v0.5.0
func (r *InMemoryTeamRepository) FindMembers(ctx context.Context, teamID uuid.UUID) ([]*entities.TeamMember, error)
FindMembers returns all members of a team.
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.
func (*InMemoryUserRepository) FindByEmail ¶ added in v0.5.0
func (r *InMemoryUserRepository) FindByEmail(ctx context.Context, email string) (*entities.User, error)
FindByEmail returns the user with the specified email.
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.