Documentation ¶
Overview ¶
Package storageservice provides a client for Storage Services.
Index ¶
- type AccountType
- type AvailabilityResponse
- type CreateStorageServiceInput
- type ExtendedProperty
- type ExtendedPropertyList
- type GetStorageServiceKeysResponse
- type ListStorageServicesResponse
- type StorageAccountCreateParameters
- type StorageServiceClient
- func (s StorageServiceClient) CheckStorageAccountNameAvailability(name string) (AvailabilityResponse, error)
- 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
- type StorageServiceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountType ¶
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 ¶
type CreateStorageServiceInput ¶
type CreateStorageServiceInput struct { XMLName xml.Name `xml:"http://schemas.microsoft.com/windowsazure CreateStorageServiceInput"` StorageAccountCreateParameters }
type ExtendedProperty ¶
type ExtendedPropertyList ¶
type ExtendedPropertyList struct {
ExtendedProperty []ExtendedProperty
}
type ListStorageServicesResponse ¶
type ListStorageServicesResponse struct {
StorageServices []StorageServiceResponse `xml:"StorageService"`
}
type StorageAccountCreateParameters ¶
type StorageAccountCreateParameters struct { ServiceName string Description string `xml:",omitempty"` Label string AffinityGroup string `xml:",omitempty"` Location string `xml:",omitempty"` ExtendedProperties ExtendedPropertyList AccountType AccountType }
type StorageServiceClient ¶
type StorageServiceClient struct {
// contains filtered or unexported fields
}
StorageServiceClient is used to perform operations on Azure Storage
func NewClient ¶
func NewClient(s management.Client) StorageServiceClient
NewClient is used to instantiate a new StorageServiceClient from an Azure client.
func (StorageServiceClient) CheckStorageAccountNameAvailability ¶
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 (StorageServiceClient) CreateStorageService ¶
func (s StorageServiceClient) CreateStorageService(parameters StorageAccountCreateParameters) (management.OperationID, error)
func (StorageServiceClient) DeleteStorageService ¶
func (s StorageServiceClient) DeleteStorageService(serviceName string) (management.OperationID, error)
func (StorageServiceClient) GetStorageService ¶
func (s StorageServiceClient) GetStorageService(serviceName string) (StorageServiceResponse, error)
func (StorageServiceClient) GetStorageServiceKeys ¶
func (s StorageServiceClient) GetStorageServiceKeys(serviceName string) (GetStorageServiceKeysResponse, error)
func (StorageServiceClient) ListStorageServices ¶
func (s StorageServiceClient) ListStorageServices() (ListStorageServicesResponse, error)
type StorageServiceResponse ¶
type StorageServiceResponse struct { URL string `xml:"Url"` ServiceName string StorageServiceProperties StorageServiceProperties }
Click to show internal directories.
Click to hide internal directories.