Documentation
¶
Index ¶
- Variables
- func AddPool(opts AddPoolOptions) error
- func AddTeamsToPool(poolName string, teams []string) error
- func AppendPoolConstraint(c *PoolConstraint) error
- func MigratePoolTeamsToPoolConstraints() error
- func PoolUpdate(name string, opts UpdatePoolOptions) error
- func RemovePool(poolName string) error
- func RemoveTeamsFromPool(poolName string, teams []string) error
- func RenamePoolTeam(oldName, newName string) error
- func SetPoolConstraint(c *PoolConstraint) error
- type AddPoolOptions
- type Pool
- type PoolConstraint
- type UpdatePoolOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPublicDefaultPoolCantHaveTeams = errors.New("Public/Default pool can't have teams.") ErrDefaultPoolAlreadyExists = errors.New("Default pool already exists.") ErrPoolNameIsRequired = errors.New("Pool name is required.") ErrPoolNotFound = errors.New("Pool does not exist.") ErrPoolAlreadyExists = errors.New("Pool already exists.") ErrPoolHasNoTeam = errors.New("no team found for pool") ErrPoolHasNoRouter = errors.New("no router found for pool") ErrPoolHasNoService = errors.New("no service found for pool") ErrInvalidConstraintType = errors.Errorf("invalid constraint type. Valid types are: %s", strings.Join(validConstraintTypes, ",")) )
Functions ¶
func AddPool ¶
func AddPool(opts AddPoolOptions) error
func AddTeamsToPool ¶
func AppendPoolConstraint ¶
func AppendPoolConstraint(c *PoolConstraint) error
func MigratePoolTeamsToPoolConstraints ¶
func MigratePoolTeamsToPoolConstraints() error
func PoolUpdate ¶
func PoolUpdate(name string, opts UpdatePoolOptions) error
func RemovePool ¶
func RemoveTeamsFromPool ¶
func RenamePoolTeam ¶
func SetPoolConstraint ¶
func SetPoolConstraint(c *PoolConstraint) error
Types ¶
type AddPoolOptions ¶
type Pool ¶
func GetDefaultPool ¶
func GetPoolByName ¶
GetPoolByName finds a pool by name
func ListAllPools ¶
func ListPoolsForTeam ¶
func ListPossiblePools ¶
func (*Pool) GetDefaultRouter ¶
func (*Pool) GetProvisioner ¶
func (p *Pool) GetProvisioner() (provision.Provisioner, error)
func (*Pool) GetRouters ¶
func (*Pool) GetServices ¶
func (*Pool) MarshalJSON ¶
type PoolConstraint ¶
func ListPoolsConstraints ¶
func ListPoolsConstraints(query bson.M) ([]*PoolConstraint, error)
func (*PoolConstraint) AllowsAll ¶
func (c *PoolConstraint) AllowsAll() bool
Click to show internal directories.
Click to hide internal directories.