...

Package affinitygroup

import "github.com/Azure/azure-sdk-for-go/services/classic/management/affinitygroup"
Overview
Index

Overview ▾

type AffinityGroup

AffinityGroup respresents the properties of an affinity group on Azure.

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

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

type AffinityGroupClient

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

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

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

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

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

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

type ComputeCapabilities

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

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

type CreateAffinityGroupParams

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 CreateAffinityGroupParams struct {
    XMLName     xml.Name `xml:"http://schemas.microsoft.com/windowsazure CreateAffinityGroup"`
    Name        string
    Label       string
    Description string `xml:",omitempty"`
    Location    string
}

type HostedService

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

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

type ListAffinityGroupsResponse

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

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

type StorageService

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

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

type UpdateAffinityGroupParams

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

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

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