Documentation ¶
Index ¶
- type OrganizationService
- func (s *OrganizationService) AddOrganizationMember(ctx context.Context, organizationID, userID uuid.UUID, role string) error
- func (s *OrganizationService) AddTeam(ctx context.Context, organizationID, teamID uuid.UUID) error
- func (s *OrganizationService) AddTeamMember(ctx context.Context, teamID, userID uuid.UUID, role string) error
- func (s *OrganizationService) CreateOrganization(ctx context.Context, organization *entities.Organization) error
- func (s *OrganizationService) CreateTeam(ctx context.Context, team *entities.Team) error
- func (s *OrganizationService) CreateUser(ctx context.Context, user *entities.User) error
- func (s *OrganizationService) DeleteOrganization(ctx context.Context, id uuid.UUID) error
- func (s *OrganizationService) DeleteTeam(ctx context.Context, id uuid.UUID) error
- func (s *OrganizationService) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (s *OrganizationService) GetOrganization(ctx context.Context, id uuid.UUID) (*entities.Organization, error)
- func (s *OrganizationService) GetOrganizations(ctx context.Context) ([]*entities.Organization, error)
- func (s *OrganizationService) GetTeam(ctx context.Context, id uuid.UUID) (*entities.Team, error)
- func (s *OrganizationService) GetTeams(ctx context.Context) ([]*entities.Team, error)
- func (s *OrganizationService) GetUser(ctx context.Context, id uuid.UUID) (*entities.User, error)
- func (s *OrganizationService) GetUserByEmail(ctx context.Context, email string) (*entities.User, error)
- func (s *OrganizationService) GetUserOrganizationsMemberships(ctx context.Context, userID uuid.UUID) ([]*entities.OrganizationMember, error)
- func (s *OrganizationService) GetUserTeamsMemberships(ctx context.Context, userID uuid.UUID) ([]*entities.TeamMember, error)
- func (s *OrganizationService) GetUsers(ctx context.Context) ([]*entities.User, error)
- func (s *OrganizationService) RemoveOrganizationMember(ctx context.Context, organizationID, userID uuid.UUID) error
- func (s *OrganizationService) RemoveTeam(ctx context.Context, organizationID, teamID uuid.UUID) error
- func (s *OrganizationService) RemoveTeamMember(ctx context.Context, teamID, userID uuid.UUID) error
- func (s *OrganizationService) UpdateOrganization(ctx context.Context, organization *entities.Organization) error
- func (s *OrganizationService) UpdateOrganizationMemberRole(ctx context.Context, organizationID, userID uuid.UUID, role string) error
- func (s *OrganizationService) UpdateTeam(ctx context.Context, team *entities.Team) error
- func (s *OrganizationService) UpdateTeamMemberRole(ctx context.Context, teamID, userID uuid.UUID, role string) error
- func (s *OrganizationService) UpdateUser(ctx context.Context, user *entities.User) error
- type TaskService
- func (s *TaskService) Create(ctx context.Context, task *entities.Task) error
- func (s *TaskService) Delete(ctx context.Context, id uuid.UUID) error
- func (s *TaskService) FindAll(ctx context.Context, scope *entities.TaskScope) ([]*entities.Task, error)
- func (s *TaskService) FindByID(ctx context.Context, id uuid.UUID, scope *entities.TaskScope) (*entities.Task, error)
- func (s *TaskService) FindTaskRunByID(ctx context.Context, taskID uuid.UUID, taskRunID uuid.UUID) (*entities.TaskRun, error)
- func (s *TaskService) FindTaskRunLogs(ctx context.Context, taskID uuid.UUID, taskRunID uuid.UUID) (map[string]string, error)
- func (s *TaskService) FindTaskRunStatus(ctx context.Context, taskID uuid.UUID, taskRunID uuid.UUID) (tekton.TaskRunStatus, error)
- func (s *TaskService) FindTaskRuns(ctx context.Context, taskID uuid.UUID) ([]*entities.TaskRun, error)
- func (s *TaskService) GetTaskScopeFromContext(ctx context.Context) *entities.TaskScope
- func (s *TaskService) Run(ctx context.Context, taskID uuid.UUID, taskRunID uuid.UUID, ...) error
- func (s *TaskService) Update(ctx context.Context, task *entities.Task) error
- type TriggerService
- func (s *TriggerService) Create(ctx context.Context, trigger *entities.Trigger) error
- func (s *TriggerService) Delete(ctx context.Context, id uuid.UUID) error
- func (s *TriggerService) FindAll(ctx context.Context) ([]*entities.Trigger, error)
- func (s *TriggerService) FindByID(ctx context.Context, id uuid.UUID) (*entities.Trigger, error)
- func (s *TriggerService) 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 OrganizationService ¶ added in v0.5.0
type OrganizationService struct {
// contains filtered or unexported fields
}
func NewOrganizationService ¶ added in v0.5.0
func NewOrganizationService(organizationRepo repositories.OrganizationRepository, teamRepo repositories.TeamRepository, userRepo repositories.UserRepository) *OrganizationService
NewOrganizationService creates a new organization service.
func (*OrganizationService) AddOrganizationMember ¶ added in v0.5.0
func (s *OrganizationService) AddOrganizationMember(ctx context.Context, organizationID, userID uuid.UUID, role string) error
AddMember adds a member to an organization.
func (*OrganizationService) AddTeamMember ¶ added in v0.5.0
func (s *OrganizationService) AddTeamMember(ctx context.Context, teamID, userID uuid.UUID, role string) error
AddMember adds a member to a team.
func (*OrganizationService) CreateOrganization ¶ added in v0.5.0
func (s *OrganizationService) CreateOrganization(ctx context.Context, organization *entities.Organization) error
CreateOrganization creates a new organization.
func (*OrganizationService) CreateTeam ¶ added in v0.5.0
CreateTeam creates a new team.
func (*OrganizationService) CreateUser ¶ added in v0.5.0
CreateUser creates a new user.
func (*OrganizationService) DeleteOrganization ¶ added in v0.5.0
DeleteOrganization deletes an organization by ID.
func (*OrganizationService) DeleteTeam ¶ added in v0.5.0
DeleteTeam deletes a team by ID.
func (*OrganizationService) DeleteUser ¶ added in v0.5.0
DeleteUser deletes a user by ID.
func (*OrganizationService) GetOrganization ¶ added in v0.5.0
func (s *OrganizationService) GetOrganization(ctx context.Context, id uuid.UUID) (*entities.Organization, error)
GetOrganization returns an organization by ID.
func (*OrganizationService) GetOrganizations ¶ added in v0.5.0
func (s *OrganizationService) GetOrganizations(ctx context.Context) ([]*entities.Organization, error)
GetOrganizations returns all organizations.
func (*OrganizationService) GetUserByEmail ¶ added in v0.5.0
func (s *OrganizationService) GetUserByEmail(ctx context.Context, email string) (*entities.User, error)
GetUserByEmail returns a user by email.
func (*OrganizationService) GetUserOrganizationsMemberships ¶ added in v0.5.0
func (s *OrganizationService) GetUserOrganizationsMemberships(ctx context.Context, userID uuid.UUID) ([]*entities.OrganizationMember, error)
GetUserMemberships returns all memberships of a user.
func (*OrganizationService) GetUserTeamsMemberships ¶ added in v0.5.0
func (s *OrganizationService) GetUserTeamsMemberships(ctx context.Context, userID uuid.UUID) ([]*entities.TeamMember, error)
GetUserTeamsMemberships returns all memberships of a user.
func (*OrganizationService) RemoveOrganizationMember ¶ added in v0.5.0
func (s *OrganizationService) RemoveOrganizationMember(ctx context.Context, organizationID, userID uuid.UUID) error
RemoveMember removes a member from an organization.
func (*OrganizationService) RemoveTeam ¶ added in v0.5.0
func (s *OrganizationService) RemoveTeam(ctx context.Context, organizationID, teamID uuid.UUID) error
RemoveTeam removes a team from an organization.
func (*OrganizationService) RemoveTeamMember ¶ added in v0.5.0
RemoveMember removes a member from a team.
func (*OrganizationService) UpdateOrganization ¶ added in v0.5.0
func (s *OrganizationService) UpdateOrganization(ctx context.Context, organization *entities.Organization) error
UpdateOrganization updates an organization.
func (*OrganizationService) UpdateOrganizationMemberRole ¶ added in v0.5.0
func (s *OrganizationService) UpdateOrganizationMemberRole(ctx context.Context, organizationID, userID uuid.UUID, role string) error
UpdateMemberRole updates the role of a member in an organization.
func (*OrganizationService) UpdateTeam ¶ added in v0.5.0
UpdateTeam updates a team.
func (*OrganizationService) UpdateTeamMemberRole ¶ added in v0.5.0
func (s *OrganizationService) UpdateTeamMemberRole(ctx context.Context, teamID, userID uuid.UUID, role string) error
UpdateMemberRole updates the role of a member in a team.
func (*OrganizationService) UpdateUser ¶ added in v0.5.0
UpdateUser updates a user.
type TaskService ¶
type TaskService struct {
// contains filtered or unexported fields
}
TaskService is a service that manages tasks.
func NewTaskService ¶
func NewTaskService(taskRepo repositories.TaskRepository, taskRunRepo repositories.TaskRunRepository, tektonClient tektoncd.TektonClient) *TaskService
NewTaskService creates a new TaskService.
func (*TaskService) FindAll ¶
func (s *TaskService) FindAll(ctx context.Context, scope *entities.TaskScope) ([]*entities.Task, error)
FindAll returns all tasks.
func (*TaskService) FindByID ¶
func (s *TaskService) FindByID(ctx context.Context, id uuid.UUID, scope *entities.TaskScope) (*entities.Task, error)
FindByID returns a task by ID.
func (*TaskService) FindTaskRunByID ¶ added in v0.2.0
func (s *TaskService) FindTaskRunByID(ctx context.Context, taskID uuid.UUID, taskRunID uuid.UUID) (*entities.TaskRun, error)
FindTaskRunByID returns a task run by ID.
func (*TaskService) FindTaskRunLogs ¶ added in v0.2.0
func (s *TaskService) FindTaskRunLogs(ctx context.Context, taskID uuid.UUID, taskRunID uuid.UUID) (map[string]string, error)
FindTaskRunLogs returns a stream of logs for a task run.
func (*TaskService) FindTaskRunStatus ¶ added in v0.4.0
func (s *TaskService) FindTaskRunStatus(ctx context.Context, taskID uuid.UUID, taskRunID uuid.UUID) (tekton.TaskRunStatus, error)
FindTaskRunStatus returns the status of a task run.
func (*TaskService) FindTaskRuns ¶ added in v0.2.0
func (s *TaskService) FindTaskRuns(ctx context.Context, taskID uuid.UUID) ([]*entities.TaskRun, error)
FindTaskRuns returns all task runs for a task.
func (*TaskService) GetTaskScopeFromContext ¶ added in v0.5.0
func (s *TaskService) GetTaskScopeFromContext(ctx context.Context) *entities.TaskScope
GetTaskScopeFromContext returns a task scope from a context.
type TriggerService ¶
type TriggerService struct {
// contains filtered or unexported fields
}
TriggerService is a service that manages triggers.
func NewTriggerService ¶
func NewTriggerService(repo repositories.TriggerRepository) *TriggerService
NewTriggerService creates a new TriggerService.