Documentation ¶
Overview ¶
Package govcloudair provides a simple binding for vCloud Air REST APIs.
Index ¶
- type Catalog
- type CatalogItem
- type Client
- type EdgeGateway
- type Org
- type OrgVDCNetwork
- type Task
- type VApp
- func (v *VApp) ChangeCPUcount(size int) (Task, error)
- func (v *VApp) ChangeMemorySize(size int) (Task, error)
- func (v *VApp) ComposeVApp(orgvdcnetwork OrgVDCNetwork, vapptemplate VAppTemplate, name string, ...) (Task, error)
- func (v *VApp) Delete() (Task, error)
- func (v *VApp) Deploy() (Task, error)
- func (v *VApp) GetStatus() (string, error)
- func (v *VApp) PowerOff() (Task, error)
- func (v *VApp) PowerOn() (Task, error)
- func (v *VApp) Reboot() (Task, error)
- func (v *VApp) Refresh() error
- func (v *VApp) Reset() (Task, error)
- func (v *VApp) RunCustomizationScript(computername, script string) (Task, error)
- func (v *VApp) Shutdown() (Task, error)
- func (v *VApp) Suspend() (Task, error)
- func (v *VApp) Undeploy() (Task, error)
- type VAppTemplate
- type Vdc
- func (v *Vdc) FindEdgeGateway(edgegateway string) (EdgeGateway, error)
- func (v *Vdc) FindVAppByID(vappid string) (VApp, error)
- func (v *Vdc) FindVAppByName(vapp string) (VApp, error)
- func (v *Vdc) FindVDCNetwork(network string) (OrgVDCNetwork, error)
- func (v *Vdc) GetVDCOrg() (Org, error)
- func (v *Vdc) Refresh() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
func NewCatalog ¶
func (*Catalog) FindCatalogItem ¶
func (c *Catalog) FindCatalogItem(catalogitem string) (CatalogItem, error)
type CatalogItem ¶
type CatalogItem struct { CatalogItem *types.CatalogItem // contains filtered or unexported fields }
func NewCatalogItem ¶
func NewCatalogItem(c *Client) *CatalogItem
func (*CatalogItem) GetVAppTemplate ¶
func (ci *CatalogItem) GetVAppTemplate() (VAppTemplate, error)
type Client ¶
type Client struct { VAToken string // vCloud Air authorization token VAEndpoint url.URL // vCloud Air API endpoint Region string // Region where the compute resource lives. VCDToken string // Access Token (authorization header) VCDAuthHeader string // Authorization header VCDVDCHREF url.URL // HREF of the backend VDC you're using Http http.Client // HttpClient is the client to use. Default will be used if not provided. }
Client provides a client to vCloud Air, values can be populated automatically using the Authenticate method.
func NewClient ¶
NewClient returns a new empty client to authenticate against the vCloud Air service, the vCloud Air endpoint can be overridden by setting the VCLOUDAIR_ENDPOINT environment variable.
func (*Client) Authenticate ¶
Authenticate is an helper function that performs a complete login in vCloud Air and in the backend vCloud Director instance.
func (*Client) Disconnect ¶
Disconnect performs a disconnection from the vCloud Air API endpoint.
type EdgeGateway ¶
type EdgeGateway struct { EdgeGateway *types.EdgeGateway // contains filtered or unexported fields }
func NewEdgeGateway ¶
func NewEdgeGateway(c *Client) *EdgeGateway
func (*EdgeGateway) Create1to1Mapping ¶
func (e *EdgeGateway) Create1to1Mapping(internal, external, description string) (Task, error)
func (*EdgeGateway) Refresh ¶
func (e *EdgeGateway) Refresh() error
func (*EdgeGateway) Remove1to1Mapping ¶
func (e *EdgeGateway) Remove1to1Mapping(internal, external string) (Task, error)
type OrgVDCNetwork ¶
type OrgVDCNetwork struct { OrgVDCNetwork *types.OrgVDCNetwork // contains filtered or unexported fields }
func NewOrgVDCNetwork ¶
func NewOrgVDCNetwork(c *Client) *OrgVDCNetwork
type Task ¶
func (*Task) WaitTaskCompletion ¶
type VApp ¶
func (*VApp) ComposeVApp ¶
func (v *VApp) ComposeVApp(orgvdcnetwork OrgVDCNetwork, vapptemplate VAppTemplate, name string, description string) (Task, error)
func (*VApp) RunCustomizationScript ¶
type VAppTemplate ¶
type VAppTemplate struct { VAppTemplate *types.VAppTemplate // contains filtered or unexported fields }
func NewVAppTemplate ¶
func NewVAppTemplate(c *Client) *VAppTemplate
type Vdc ¶
func (*Vdc) FindEdgeGateway ¶
func (v *Vdc) FindEdgeGateway(edgegateway string) (EdgeGateway, error)
func (*Vdc) FindVDCNetwork ¶
func (v *Vdc) FindVDCNetwork(network string) (OrgVDCNetwork, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.