Documentation
¶
Index ¶
- Constants
- func GetCleanupPoolKey(name string) string
- func GetPoolKey(name string) string
- func IsCommandMissingError(err error) bool
- func NewCommandMissingError() error
- func PrintIfDebug(debug bool, title string, out string)
- type Pool
- func (p Pool) ActivateCluster(ctx *generic.Context) (*clusters.Cluster, error)
- func (p Pool) Destroy(ctx *generic.Context) error
- func (p Pool) ExpiresOn(c *clusters.Cluster) time.Time
- func (p Pool) GC(ctx *generic.Context) error
- func (p Pool) GetClusters(ctx *generic.Context) (*clusters.ClusterList, error)
- func (p Pool) IsMarkedForRemoval(ctx *generic.Context) bool
- func (p Pool) MarkForRemoval(ctx *generic.Context) error
- func (p Pool) Reconcile(ctx *generic.Context) error
- func (p Pool) SaveInDB(ctx *generic.Context, removal bool) error
Constants ¶
View Source
const ( PoolKey = "Pool" CleanupPoolKey = "Cleanup-Pool" )
Variables ¶
This section is empty.
Functions ¶
func GetCleanupPoolKey ¶
func GetPoolKey ¶
func IsCommandMissingError ¶
func NewCommandMissingError ¶
func NewCommandMissingError() error
func PrintIfDebug ¶
Types ¶
type Pool ¶
type Pool struct { Name string `json:"Name"` Description string `json:"Description"` Size int `json:"Size"` MaxSize int `json:"MaxSize"` UnusedClusterTimeout duration.Duration `json:"UnusedClusterTimeout"` UsedClusterTimeout duration.Duration `json:"UsedClusterTimeout"` ParallelProvisioning int `json:"ParallelProvisioning"` ParallelDeProvisioning int `json:"ParallelDeProvisioning"` ProvisionCommand string `json:"ProvisionCommand"` DeProvisionCommand string `json:"DeProvisionCommand"` ForceDeprovisionCommand string `json:"ForceDeProvisionCommand"` ClusterURLCommand string `json:"ClusterUrlCommand"` ClusterAdminUserCommand string `json:"ClusterAdminUserCommand"` ClusterAdminPasswordCommand string `json:"ClusterAdminPasswordCommand"` ClusterCAFilePath string `json:"ClusterCAFilePath"` ClusterCertFilePath string `json:"ClusterCertFilePath"` ClusterKeyFilePath string `json:"ClusterKeyFilePath"` ClusterExtraInfoCommand string `json:"ClusterExtraInfoCommand"` }
Pool repersents generic of a pool
func NewEmptyPool ¶
func NewEmptyPool() *Pool
func PoolByName ¶
PoolByName gets a pool of specified name. If removal is set, then it gets the pool only if it marked for removal
func (Pool) ActivateCluster ¶
ActivateCluster activates a cluster, if it is available. This is the only direct db func in pool as we need to ensure cluster activation is a transaction
func (Pool) GetClusters ¶
func (Pool) MarkForRemoval ¶
Mark for removal marks a pool for garbage collection
Click to show internal directories.
Click to hide internal directories.