m1small

package
v0.0.155 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2016 License: GPL-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
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

func GetVCAPServicesString(enable int, uri string, user string, password string) string

GetVCAPServicesString - vcap services env string with specific innkeeper params

func Init added in v0.0.120

func Init()

Init - externally available init method

func IsEnabled added in v0.0.120

func IsEnabled() bool

IsEnabled -- Check if this sku is enabled using cf env

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

Jump to

Keyboard shortcuts

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