team_service

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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