Documentation ¶
Index ¶
- type AccessPolicy
- type AccessTier
- type Client
- func (c Client) Create(ctx context.Context, shareName string, input CreateInput) (result CreateResponse, err error)
- func (c Client) CreateSnapshot(ctx context.Context, shareName string, input CreateSnapshotInput) (result CreateSnapshotResponse, err error)
- func (c Client) Delete(ctx context.Context, shareName string, input DeleteInput) (result DeleteResponse, err error)
- func (c Client) DeleteSnapshot(ctx context.Context, accountName, shareName string, shareSnapshot string) (result DeleteSnapshotResponse, err error)
- func (c Client) GetACL(ctx context.Context, shareName string) (result GetACLResult, err error)
- func (c Client) GetMetaData(ctx context.Context, shareName string) (result GetMetaDataResponse, err error)
- func (c Client) GetProperties(ctx context.Context, shareName string) (result GetPropertiesResult, err error)
- func (c Client) GetResourceManagerResourceID(subscriptionID, resourceGroup, accountName, shareName string) string
- func (c Client) GetSnapshot(ctx context.Context, shareName string, input GetSnapshotPropertiesInput) (result GetSnapshotPropertiesResponse, err error)
- func (c Client) GetStats(ctx context.Context, shareName string) (result GetStatsResponse, err error)
- func (c Client) SetACL(ctx context.Context, shareName string, input SetAclInput) (result SetAclResponse, err error)
- func (c Client) SetMetaData(ctx context.Context, shareName string, input SetMetaDataInput) (result SetMetaDataResponse, err error)
- func (c Client) SetProperties(ctx context.Context, shareName string, properties ShareProperties) (result SetPropertiesResponse, err error)
- type CreateInput
- type CreateOptions
- type CreateResponse
- type CreateSnapshotInput
- type CreateSnapshotResponse
- type DeleteInput
- type DeleteOptions
- type DeleteResponse
- type DeleteSnapshotResponse
- type ErrorResponse
- type GetACLResult
- type GetMetaDataOptions
- type GetMetaDataResponse
- type GetPropertiesResult
- type GetSnapshotPropertiesInput
- type GetSnapshotPropertiesResponse
- type GetStatsResponse
- type SetAclInput
- type SetAclResponse
- type SetMetaDataInput
- type SetMetaDataOptions
- type SetMetaDataResponse
- type SetPropertiesOptions
- type SetPropertiesResponse
- type ShareId
- type ShareProperties
- type ShareProtocol
- type SignedIdentifier
- type StorageShare
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessPolicy ¶
type AccessTier ¶
type AccessTier string
const ( TransactionOptimizedAccessTier AccessTier = "TransactionOptimized" HotAccessTier AccessTier = "Hot" CoolAccessTier AccessTier = "Cool" PremiumAccessTier AccessTier = "Premium" )
type Client ¶
Client is the base client for File Storage Shares.
func NewWithBaseUri ¶
func (Client) Create ¶
func (c Client) Create(ctx context.Context, shareName string, input CreateInput) (result CreateResponse, err error)
Create creates the specified Storage Share within the specified Storage Account
func (Client) CreateSnapshot ¶
func (c Client) CreateSnapshot(ctx context.Context, shareName string, input CreateSnapshotInput) (result CreateSnapshotResponse, err error)
CreateSnapshot creates a read-only snapshot of the share A share can support creation of 200 share snapshots. Attempting to create more than 200 share snapshots fails with 409 (Conflict). Attempting to create a share snapshot while a previous Snapshot Share operation is in progress fails with 409 (Conflict).
func (Client) Delete ¶
func (c Client) Delete(ctx context.Context, shareName string, input DeleteInput) (result DeleteResponse, err error)
Delete deletes the specified Storage Share from within a Storage Account
func (Client) DeleteSnapshot ¶
func (c Client) DeleteSnapshot(ctx context.Context, accountName, shareName string, shareSnapshot string) (result DeleteSnapshotResponse, err error)
DeleteSnapshot deletes the specified Snapshot of a Storage Share
func (Client) GetMetaData ¶
func (c Client) GetMetaData(ctx context.Context, shareName string) (result GetMetaDataResponse, err error)
GetMetaData returns the MetaData associated with the specified Storage Share
func (Client) GetProperties ¶
func (c Client) GetProperties(ctx context.Context, shareName string) (result GetPropertiesResult, err error)
GetProperties returns the properties about the specified Storage Share
func (Client) GetResourceManagerResourceID ¶
func (c Client) GetResourceManagerResourceID(subscriptionID, resourceGroup, accountName, shareName string) string
GetResourceManagerResourceID returns the Resource Manager specific ResourceID for a specific Storage Share
func (Client) GetSnapshot ¶
func (c Client) GetSnapshot(ctx context.Context, shareName string, input GetSnapshotPropertiesInput) (result GetSnapshotPropertiesResponse, err error)
GetSnapshot gets information about the specified Snapshot of the specified Storage Share
func (Client) GetStats ¶
func (c Client) GetStats(ctx context.Context, shareName string) (result GetStatsResponse, err error)
GetStats returns information about the specified Storage Share
func (Client) SetACL ¶
func (c Client) SetACL(ctx context.Context, shareName string, input SetAclInput) (result SetAclResponse, err error)
SetACL sets the specified Access Control List on the specified Storage Share
func (Client) SetMetaData ¶
func (c Client) SetMetaData(ctx context.Context, shareName string, input SetMetaDataInput) (result SetMetaDataResponse, err error)
SetMetaData sets the MetaData on the specified Storage Share
func (Client) SetProperties ¶
func (c Client) SetProperties(ctx context.Context, shareName string, properties ShareProperties) (result SetPropertiesResponse, err error)
SetProperties lets you update the Quota for the specified Storage Share
type CreateInput ¶
type CreateInput struct { // Specifies the maximum size of the share, in gigabytes. // Must be greater than 0, and less than or equal to 5TB (5120). QuotaInGB int // Specifies the enabled protocols on the share. If not specified, the default is SMB. EnabledProtocol ShareProtocol MetaData map[string]string // Specifies the access tier of the share. AccessTier *AccessTier }
type CreateOptions ¶
type CreateOptions struct {
// contains filtered or unexported fields
}
func (CreateOptions) ToHeaders ¶
func (c CreateOptions) ToHeaders() *client.Headers
func (CreateOptions) ToOData ¶
func (c CreateOptions) ToOData() *odata.Query
func (CreateOptions) ToQuery ¶
func (c CreateOptions) ToQuery() *client.QueryParams
type CreateResponse ¶
type CreateSnapshotInput ¶
type CreateSnapshotResponse ¶
type DeleteInput ¶
type DeleteInput struct {
DeleteSnapshots bool
}
type DeleteOptions ¶
type DeleteOptions struct {
// contains filtered or unexported fields
}
func (DeleteOptions) ToHeaders ¶
func (d DeleteOptions) ToHeaders() *client.Headers
func (DeleteOptions) ToOData ¶
func (d DeleteOptions) ToOData() *odata.Query
func (DeleteOptions) ToQuery ¶
func (d DeleteOptions) ToQuery() *client.QueryParams
type DeleteResponse ¶
type DeleteSnapshotResponse ¶
type ErrorResponse ¶ added in v0.24.0
type GetACLResult ¶
type GetACLResult struct { HttpResponse *http.Response SignedIdentifiers []SignedIdentifier `xml:"SignedIdentifier"` }
type GetMetaDataOptions ¶
type GetMetaDataOptions struct{}
func (GetMetaDataOptions) ToHeaders ¶
func (g GetMetaDataOptions) ToHeaders() *client.Headers
func (GetMetaDataOptions) ToOData ¶
func (g GetMetaDataOptions) ToOData() *odata.Query
func (GetMetaDataOptions) ToQuery ¶
func (g GetMetaDataOptions) ToQuery() *client.QueryParams
type GetMetaDataResponse ¶
type GetPropertiesResult ¶
type GetPropertiesResult struct { HttpResponse *http.Response MetaData map[string]string QuotaInGB int EnabledProtocol ShareProtocol AccessTier *AccessTier }
type GetSnapshotPropertiesInput ¶
type GetSnapshotPropertiesInput struct {
// contains filtered or unexported fields
}
type GetStatsResponse ¶
type SetAclInput ¶
type SetAclInput struct { SignedIdentifiers []SignedIdentifier `xml:"SignedIdentifier"` XMLName xml.Name `xml:"SignedIdentifiers"` }
type SetAclResponse ¶
type SetMetaDataInput ¶
type SetMetaDataOptions ¶
type SetMetaDataOptions struct {
// contains filtered or unexported fields
}
func (SetMetaDataOptions) ToHeaders ¶
func (s SetMetaDataOptions) ToHeaders() *client.Headers
func (SetMetaDataOptions) ToOData ¶
func (s SetMetaDataOptions) ToOData() *odata.Query
func (SetMetaDataOptions) ToQuery ¶
func (s SetMetaDataOptions) ToQuery() *client.QueryParams
type SetMetaDataResponse ¶
type SetPropertiesOptions ¶
type SetPropertiesOptions struct {
// contains filtered or unexported fields
}
func (SetPropertiesOptions) ToHeaders ¶
func (s SetPropertiesOptions) ToHeaders() *client.Headers
func (SetPropertiesOptions) ToOData ¶
func (s SetPropertiesOptions) ToOData() *odata.Query
func (SetPropertiesOptions) ToQuery ¶
func (s SetPropertiesOptions) ToQuery() *client.QueryParams
type SetPropertiesResponse ¶
type ShareId ¶ added in v0.22.0
func NewShareID ¶ added in v0.22.0
func ParseShareID ¶ added in v0.22.0
ParseShareID parses `input` into a Share ID using a known `domainSuffix`
type ShareProperties ¶
type ShareProperties struct {}
type ShareProtocol ¶
type ShareProtocol string
const ( // SMB indicates the share can be accessed by SMBv3.0, SMBv2.1 and REST. SMB ShareProtocol = "SMB" // NFS indicates the share can be accessed by NFSv4.1. A premium account is required for this option. NFS ShareProtocol = "NFS" )
type SignedIdentifier ¶
type SignedIdentifier struct { Id string `xml:"Id"` AccessPolicy AccessPolicy `xml:"AccessPolicy"` }
type StorageShare ¶
type StorageShare interface {}