team_service

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TeamService

type TeamService struct {
	// contains filtered or unexported fields
}

Integrate team management with internal permissions and kubernetes RBAC

func NewTeamService

func NewTeamService(repo repositories.RepositoriesInterface, k8sClient *k8s.KubeClient) *TeamService

func (*TeamService) GetTeamByID

func (self *TeamService) GetTeamByID(ctx context.Context, userID, teamID uuid.UUID) (*models.TeamResponse, error)

GetTeamByID retrieves a team by ID

func (*TeamService) ListTeams

func (self *TeamService) ListTeams(ctx context.Context, userID uuid.UUID, bearerToken string) ([]*models.TeamResponse, error)

ListTeams retrieves all teams the user has permission to view

func (*TeamService) UpdateTeam

func (self *TeamService) UpdateTeam(ctx context.Context, userID uuid.UUID, input *TeamUpdateInput) (*models.TeamResponse, error)

UpdateTeam updates a specific team

type TeamUpdateInput

type TeamUpdateInput struct {
	ID          uuid.UUID `json:"id" format:"uuid" required:"true"`
	Name        string    `json:"name"`
	Description *string   `json:"description"`
}

Jump to

Keyboard shortcuts

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