s2csmall

package
v0.0.87 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2015 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//StatusComplete - a status flag for complete tasks
	StatusComplete = "complete"
	//StatusFailed - a status for failed tasks
	StatusFailed = "failed"
	//StatusProcessing - a status for in process items
	StatusProcessing = "processing"
	//StatusOutsourced - this is to indicate the the task tracking has been outsourced
	StatusOutsourced = "outsourced"
	//VCDTaskElementHrefMetaName - the name of the meta data field containing the href for the vcd task
	VCDTaskElementHrefMetaName = "vcd_task_element_href"
	//TaskActionUnDeploy --
	TaskActionUnDeploy = "undeploy_vapp"
	//TaskActionDeploy --
	TaskActionDeploy = "deploy_vapp"
	//TaskActionSelfDestruct --
	TaskActionSelfDestruct = "self_destruct"
	//SkuName2CSmall --
	SkuName2CSmall = "2c.small"
	//VCDUsernameField - name of the field in Procurement meta containing username for vcd
	VCDUsernameField = "vcd_username"
	//VCDPasswordField - name of the field in Procurement meta containing password for vcd
	VCDPasswordField = "vcd_password"
	//VCDAppIDField - name of the field in Procurement meta containing appid for vcd
	VCDAppIDField = "vapp_id"
	//VCDBaseURIField - name of the field in Procurement meta containing baseuri for vcd
	VCDBaseURIField = "base_uri"
	//VCDTemplateNameField - name of the field in Procurement meta containing template name for vcd
	VCDTemplateNameField = "template_name"
	//SubTaskIDField - name of the field in Task meta containing subtask id for vcd
	SubTaskIDField = "subtask_id"
	//LeaseExpiresFieldName --
	LeaseExpiresFieldName = "lease_expires"
	//InventoryIDFieldName ---
	InventoryIDFieldName = "inventory_id"
	//CredentialsFieldName ----
	CredentialsFieldName = "credentials"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Sku2CSmall

type Sku2CSmall struct {
	Client          vcdClient
	TaskManager     skurepo.TaskManager
	ProcurementMeta map[string]interface{}
}

Sku2CSmall - a object representing a 2csmall sku

func (*Sku2CSmall) New

func (s *Sku2CSmall) New(tm skurepo.TaskManager, procurementMeta map[string]interface{}) skurepo.Sku

New - create a new instance of the given object type, initialized with some vars

func (*Sku2CSmall) PollForTasks

func (s *Sku2CSmall) PollForTasks()

PollForTasks - this is a method for polling the current long poll task queue and acting on it

func (*Sku2CSmall) Procurement

func (s *Sku2CSmall) Procurement() (task *taskmanager.Task)

Procurement - this method will walk the procurement flow for the 2csmall object

func (*Sku2CSmall) ReStock

func (s *Sku2CSmall) ReStock() (task *taskmanager.Task)

ReStock - this method will walk the restock flow for the 2csmall object

Jump to

Keyboard shortcuts

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