team

package
v0.2.31 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 9 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TeamBean

type TeamBean struct {
	Id   int    `json:"id"`
	Name string `json:"name,notnull"`
}

type TeamRequest

type TeamRequest struct {
	Id     int    `json:"id,omitempty" validate:"number"`
	Name   string `json:"name,omitempty" validate:"required"`
	Active bool   `json:"active"`
	UserId int32  `json:"-"`
}

type TeamService

type TeamService interface {
	Create(request *TeamRequest) (*TeamRequest, error)
	FetchAllActive() ([]TeamRequest, error)
	FetchOne(id int) (*TeamRequest, error)
	FindTeamsByUser(userId int32) ([]team.Team, error)
	Update(request *TeamRequest) (*TeamRequest, error)
	FindTeamByAppId(appId int) (*TeamBean, error)
	FindActiveTeamByAppName(appName string) (*TeamBean, error)
	FetchForAutocomplete() ([]TeamRequest, error)
	FindByIds(ids []*int) ([]*TeamBean, error)
}

type TeamServiceImpl

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

func NewTeamServiceImpl

func NewTeamServiceImpl(logger *zap.SugaredLogger, teamRepository team.TeamRepository,
	pipelineBuilder pipeline.PipelineBuilder, envService cluster.EnvironmentService, userService user.UserService) *TeamServiceImpl

func (TeamServiceImpl) Create

func (impl TeamServiceImpl) Create(request *TeamRequest) (*TeamRequest, error)

func (TeamServiceImpl) FetchAllActive added in v0.2.16

func (impl TeamServiceImpl) FetchAllActive() ([]TeamRequest, error)

func (TeamServiceImpl) FetchForAutocomplete

func (impl TeamServiceImpl) FetchForAutocomplete() ([]TeamRequest, error)

func (TeamServiceImpl) FetchOne

func (impl TeamServiceImpl) FetchOne(teamId int) (*TeamRequest, error)

func (TeamServiceImpl) FindActiveTeamByAppName added in v0.2.16

func (impl TeamServiceImpl) FindActiveTeamByAppName(appName string) (*TeamBean, error)

func (TeamServiceImpl) FindByIds

func (impl TeamServiceImpl) FindByIds(ids []*int) ([]*TeamBean, error)

func (TeamServiceImpl) FindTeamByAppId

func (impl TeamServiceImpl) FindTeamByAppId(appId int) (*TeamBean, error)

func (TeamServiceImpl) FindTeamsByUser

func (impl TeamServiceImpl) FindTeamsByUser(userId int32) ([]team.Team, error)

func (TeamServiceImpl) Update

func (impl TeamServiceImpl) Update(request *TeamRequest) (*TeamRequest, error)

Jump to

Keyboard shortcuts

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