affinitygroup

package
v49.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AffinityGroup

type AffinityGroup struct {
	Name            string
	Label           string
	Description     string
	Location        string
	HostedServices  []HostedService
	StorageServices []StorageService
	Capabilities    []string
}

AffinityGroup respresents the properties of an affinity group on Azure.

https://msdn.microsoft.com/en-us/library/azure/ee460789.aspx

type AffinityGroupClient

type AffinityGroupClient struct {
	// contains filtered or unexported fields
}

AffinityGroupClient simply contains a management.Client and has methods for doing all affinity group-related API calls to Azure.

func NewClient

func NewClient(mgmtClient management.Client) AffinityGroupClient

NewClient returns an AffinityGroupClient with the given management.Client.

func (AffinityGroupClient) CreateAffinityGroup

func (c AffinityGroupClient) CreateAffinityGroup(params CreateAffinityGroupParams) error

CreateAffinityGroup creates a new affinity group.

https://msdn.microsoft.com/en-us/library/azure/gg715317.aspx

func (AffinityGroupClient) DeleteAffinityGroup

func (c AffinityGroupClient) DeleteAffinityGroup(name string) error

DeleteAffinityGroup deletes the given affinity group.

https://msdn.microsoft.com/en-us/library/azure/gg715314.aspx

func (AffinityGroupClient) GetAffinityGroup

func (c AffinityGroupClient) GetAffinityGroup(name string) (AffinityGroup, error)

GetAffinityGroup returns the system properties that are associated with the specified affinity group.

https://msdn.microsoft.com/en-us/library/azure/ee460789.aspx

func (AffinityGroupClient) ListAffinityGroups

func (c AffinityGroupClient) ListAffinityGroups() (ListAffinityGroupsResponse, error)

ListAffinityGroups lists the affinity groups off Azure.

https://msdn.microsoft.com/en-us/library/azure/ee460797.aspx

func (AffinityGroupClient) UpdateAffinityGroup

func (c AffinityGroupClient) UpdateAffinityGroup(name string, params UpdateAffinityGroupParams) error

UpdateAffinityGroup updates the label or description for an the group.

https://msdn.microsoft.com/en-us/library/azure/gg715316.aspx

type AffinityGroupListResponse

type AffinityGroupListResponse struct {
	Name                string
	Label               string
	Description         string
	Location            string
	Capabilities        []string
	ComputeCapabilities ComputeCapabilities
}

AffinityGroupListResponse represents the properties obtained for each affinity group listed off Azure.

https://msdn.microsoft.com/en-us/library/azure/ee460797.aspx

type ComputeCapabilities

type ComputeCapabilities struct {
	VirtualMachineRoleSizes []string
	WebWorkerRoleSizes      []string
}

ComputeCapabilities represents the sets of capabilities of an affinity group obtained from an affinity group list call to Azure.

type CreateAffinityGroupParams

type CreateAffinityGroupParams struct {
	XMLName     xml.Name `xml:"http://schemas.microsoft.com/windowsazure CreateAffinityGroup"`
	Name        string
	Label       string
	Description string `xml:",omitempty"`
	Location    string
}

CreateAffinityGroupParams respresents the set of parameters required for creating an affinity group creation request to Azure.

https://msdn.microsoft.com/en-us/library/azure/gg715317.aspx

type HostedService

type HostedService struct {
	URL         string `xml:"Url"`
	ServiceName string
}

HostedService is a struct containing details about a hosted service that is part of an affinity group on Azure.

type ListAffinityGroupsResponse

type ListAffinityGroupsResponse struct {
	AffinityGroups []AffinityGroupListResponse `xml:"AffinityGroup"`
}

ListAffinityGroupsResponse contains all the affinity groups obtained from a call to the Azure API to list all affinity groups.

type StorageService

type StorageService struct {
	URL         string `xml:"Url"`
	ServiceName string
}

StorageService is a struct containing details about a storage service that is part of an affinity group on Azure.

type UpdateAffinityGroupParams

type UpdateAffinityGroupParams struct {
	XMLName     xml.Name `xml:"http://schemas.microsoft.com/windowsazure UpdateAffinityGroup"`
	Label       string   `xml:",omitempty"`
	Description string   `xml:",omitempty"`
}

UpdateAffinityGroupParams if the set of parameters required to update an affinity group on Azure.

https://msdn.microsoft.com/en-us/library/azure/gg715316.aspx

Jump to

Keyboard shortcuts

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