Documentation
¶
Index ¶
- Constants
- func GetDefaultVCAPApplicationString() string
- func GetDefaultVCAPServicesString() string
- func GetVCAPServicesString(enable int, uri string, user string, password string) string
- func Init()
- func IsEnabled() bool
- type SkuM1Small
- func (s *SkuM1Small) GetInnkeeperClient() (innkeeperclient.InnkeeperClient, error)
- func (s *SkuM1Small) InitInnkeeperClient() (clnt innkeeperclient.InnkeeperClient, err error)
- func (s *SkuM1Small) PollForTasks()
- func (s *SkuM1Small) Procurement() *taskmanager.Task
- func (s *SkuM1Small) ReStock() (tm *taskmanager.Task)
- func (s *SkuM1Small) StartPoller(requestID string, task *taskmanager.Task) (err error)
- type SkuM1SmallBuilder
Constants ¶
const ( // SkuName -- name of this sku duh... SkuName = "m1.small" // ProvisionHostInfoMetaName -- key name ProvisionHostInfoMetaName = "phinfo" //GetStatusInfoMetaName - metadata field name for status GetStatusInfoMetaName = "status" // ClientSkuName -- ClientSkuName = "m1.small" //ProcurementMetaFieldRequestID -- fieldname for a defined metadata field for //requestid ProcurementMetaFieldRequestID = "requestid" )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultVCAPApplicationString ¶ added in v0.0.120
func GetDefaultVCAPApplicationString() string
GetDefaultVCAPApplicationString -- vcap application env string
func GetDefaultVCAPServicesString ¶ added in v0.0.120
func GetDefaultVCAPServicesString() string
GetDefaultVCAPServicesString -- vcap services env string, with default innkeeper
func GetVCAPServicesString ¶ added in v0.0.120
GetVCAPServicesString - vcap services env string with specific innkeeper params
Types ¶
type SkuM1Small ¶
type SkuM1Small struct { Client innkeeperclient.InnkeeperClient TaskManager taskmanager.TaskManagerInterface ProcurementMeta map[string]interface{} UserIdentifier string }
SkuM1Small - a object representing a m1small sku implements skurepo.Sku
func (*SkuM1Small) GetInnkeeperClient ¶ added in v0.0.120
func (s *SkuM1Small) GetInnkeeperClient() (innkeeperclient.InnkeeperClient, error)
GetInnkeeperClient -- get an innkeeper client and cache it in the object
func (*SkuM1Small) InitInnkeeperClient ¶ added in v0.0.120
func (s *SkuM1Small) InitInnkeeperClient() (clnt innkeeperclient.InnkeeperClient, err error)
InitInnkeeperClient -- initialize innkeeper client based on cf configuration
func (*SkuM1Small) PollForTasks ¶
func (s *SkuM1Small) PollForTasks()
PollForTasks -- no longer needed, agent.Run in already asynchronous
func (*SkuM1Small) Procurement ¶
func (s *SkuM1Small) Procurement() *taskmanager.Task
Procurement -- use agent to run async task
func (*SkuM1Small) ReStock ¶
func (s *SkuM1Small) ReStock() (tm *taskmanager.Task)
ReStock -- this will grab a requestid from procurementMeta and call the innkeeper client to deprovision.
func (*SkuM1Small) StartPoller ¶ added in v0.0.126
func (s *SkuM1Small) StartPoller(requestID string, task *taskmanager.Task) (err error)
StartPoller --
type SkuM1SmallBuilder ¶ added in v0.0.152
type SkuM1SmallBuilder struct {
Client innkeeperclient.InnkeeperClient
}
SkuM1SmallBuilder - a object representing a m1small sku implements skurepo.Sku
func (*SkuM1SmallBuilder) New ¶ added in v0.0.152
func (s *SkuM1SmallBuilder) New(tm skurepo.TaskManager, meta map[string]interface{}) skurepo.Sku
New -- return a new SKU provider