const ( CertificateFormatPfx = CertificateFormat("pfx") CertificateFormatCer = CertificateFormat("cer") )
type AvailabilityResponse struct { Xmlns string `xml:"xmlns,attr"` Result bool Reason string }
type CertificateFile struct { Xmlns string `xml:"xmlns,attr"` Data string CertificateFormat CertificateFormat Password string `xml:",omitempty"` }
type CertificateFormat string
type CreateHostedServiceParameters struct { XMLName xml.Name `xml:"http://schemas.microsoft.com/windowsazure CreateHostedService"` ServiceName string Label string Description string Location string ReverseDNSFqdn string `xml:"ReverseDnsFqdn,omitempty"` }
type HostedService struct { URL string `xml:"Url"` ServiceName string Description string `xml:"HostedServiceProperties>Description"` AffinityGroup string `xml:"HostedServiceProperties>AffinityGroup"` Location string `xml:"HostedServiceProperties>Location"` LabelBase64 string `xml:"HostedServiceProperties>Label"` Label string Status string `xml:"HostedServiceProperties>Status"` ReverseDNSFqdn string `xml:"HostedServiceProperties>ReverseDnsFqdn"` DefaultWinRmCertificateThumbprint string }
HostedServiceClient is used to perform operations on Azure Hosted Services
type HostedServiceClient struct {
// contains filtered or unexported fields
}
func NewClient(client management.Client) HostedServiceClient
NewClient is used to return a handle to the HostedService API
func (h HostedServiceClient) AddCertificate(dnsName string, certData []byte, certificateFormat CertificateFormat, password string) (management.OperationID, error)
func (h HostedServiceClient) CheckHostedServiceNameAvailability(dnsName string) (AvailabilityResponse, error)
func (h HostedServiceClient) CreateHostedService(params CreateHostedServiceParameters) error
func (h HostedServiceClient) DeleteHostedService(dnsName string, deleteDisksAndBlobs bool) (management.OperationID, error)
func (h HostedServiceClient) GetHostedService(name string) (HostedService, error)
func (h HostedServiceClient) ListHostedServices() (ListHostedServicesResponse, error)
type ListHostedServicesResponse struct { HostedServices []HostedService `xml:"HostedService"` }