type AccountType string
const ( AccountTypeStandardLRS AccountType = "Standard_LRS" AccountTypeStandardZRS AccountType = "Standard_ZRS" AccountTypeStandardGRS AccountType = "Standard_GRS" AccountTypeStandardRAGRS AccountType = "Standard_RAGRS" AccountTypePremiumLRS AccountType = "Premium_LRS" )
type AvailabilityResponse struct { XMLName xml.Name `xml:"AvailabilityResponse"` Xmlns string `xml:"xmlns,attr"` Result bool Reason string }
type CreateStorageServiceInput struct { XMLName xml.Name `xml:"http://schemas.microsoft.com/windowsazure CreateStorageServiceInput"` StorageAccountCreateParameters }
type ExtendedProperty struct { Name string Value string }
type ExtendedPropertyList struct { ExtendedProperty []ExtendedProperty }
type GetStorageServiceKeysResponse struct { URL string `xml:"Url"` PrimaryKey string `xml:"StorageServiceKeys>Primary"` SecondaryKey string `xml:"StorageServiceKeys>Secondary"` }
type ListStorageServicesResponse struct { StorageServices []StorageServiceResponse `xml:"StorageService"` }
type StorageAccountCreateParameters struct { ServiceName string Description string `xml:",omitempty"` Label string AffinityGroup string `xml:",omitempty"` Location string `xml:",omitempty"` ExtendedProperties ExtendedPropertyList AccountType AccountType }
StorageServiceClient is used to perform operations on Azure Storage
type StorageServiceClient struct {
// contains filtered or unexported fields
}
func NewClient(s management.Client) StorageServiceClient
NewClient is used to instantiate a new StorageServiceClient from an Azure client.
func (s StorageServiceClient) CheckStorageAccountNameAvailability(name string) (AvailabilityResponse, error)
CheckStorageAccountNameAvailability checks to if the specified storage account name is available.
See https://msdn.microsoft.com/en-us/library/azure/jj154125.aspx
func (s StorageServiceClient) CreateStorageService(parameters StorageAccountCreateParameters) (management.OperationID, error)
func (s StorageServiceClient) DeleteStorageService(serviceName string) (management.OperationID, error)
func (s StorageServiceClient) GetStorageService(serviceName string) (StorageServiceResponse, error)
func (s StorageServiceClient) GetStorageServiceKeys(serviceName string) (GetStorageServiceKeysResponse, error)
func (s StorageServiceClient) ListStorageServices() (ListStorageServicesResponse, error)
type StorageServiceProperties struct { Description string Location string Label string Status string Endpoints []string `xml:"Endpoints>Endpoint"` GeoReplicationEnabled string GeoPrimaryRegion string }
type StorageServiceResponse struct { URL string `xml:"Url"` ServiceName string StorageServiceProperties StorageServiceProperties }