Documentation ¶
Index ¶
- type Client
- func (c Client) Create(ctx context.Context, queueName string, input CreateInput) (result CreateResponse, err error)
- func (c Client) Delete(ctx context.Context, queueName string) (result DeleteResponse, err error)
- func (c Client) GetMetaData(ctx context.Context, queueName string) (result GetMetaDataResponse, err error)
- func (c Client) GetResourceManagerResourceID(subscriptionID, resourceGroup, accountName, queueName string) string
- func (c Client) GetServiceProperties(ctx context.Context) (result GetStorageServicePropertiesResponse, err error)
- func (c Client) SetMetaData(ctx context.Context, queueName string, input SetMetaDataInput) (result SetMetaDataResponse, err error)
- func (c Client) SetServiceProperties(ctx context.Context, input SetStorageServicePropertiesInput) (result SetStorageServicePropertiesResponse, err error)
- type Cors
- type CorsRule
- type CreateInput
- type CreateResponse
- type DeleteResponse
- type GetMetaDataResponse
- type GetStorageServicePropertiesResponse
- type LoggingConfig
- type MetricsConfig
- type QueueId
- type RetentionPolicy
- type SetMetaDataInput
- type SetMetaDataResponse
- type SetStorageServicePropertiesInput
- type SetStorageServicePropertiesResponse
- type StorageQueue
- type StorageServiceProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the base client for Messages.
func NewWithBaseUri ¶
func (Client) Create ¶
func (c Client) Create(ctx context.Context, queueName string, input CreateInput) (result CreateResponse, err error)
Create creates the specified Queue within the specified Storage Account
func (Client) GetMetaData ¶
func (c Client) GetMetaData(ctx context.Context, queueName string) (result GetMetaDataResponse, err error)
GetMetaData returns the metadata for this Queue
func (Client) GetResourceManagerResourceID ¶
func (c Client) GetResourceManagerResourceID(subscriptionID, resourceGroup, accountName, queueName string) string
GetResourceManagerResourceID returns the Resource Manager ID for the given Queue This can be useful when, for example, you're using this as a unique identifier
func (Client) GetServiceProperties ¶
func (c Client) GetServiceProperties(ctx context.Context) (result GetStorageServicePropertiesResponse, err error)
GetServiceProperties gets the properties for this queue
func (Client) SetMetaData ¶
func (c Client) SetMetaData(ctx context.Context, queueName string, input SetMetaDataInput) (result SetMetaDataResponse, err error)
SetMetaData returns the metadata for this Queue
func (Client) SetServiceProperties ¶
func (c Client) SetServiceProperties(ctx context.Context, input SetStorageServicePropertiesInput) (result SetStorageServicePropertiesResponse, err error)
SetServiceProperties sets the properties for this queue
type CreateInput ¶
type CreateResponse ¶
type DeleteResponse ¶
type GetMetaDataResponse ¶
type GetStorageServicePropertiesResponse ¶
type GetStorageServicePropertiesResponse struct { StorageServiceProperties HttpResponse *http.Response }
type LoggingConfig ¶
type LoggingConfig struct { Version string `xml:"Version"` Delete bool `xml:"Delete"` Read bool `xml:"Read"` Write bool `xml:"Write"` RetentionPolicy RetentionPolicy `xml:"RetentionPolicy"` }
type MetricsConfig ¶
type MetricsConfig struct { Version string `xml:"Version"` Enabled bool `xml:"Enabled"` RetentionPolicy RetentionPolicy `xml:"RetentionPolicy"` // Element IncludeAPIs is only expected when Metrics is enabled IncludeAPIs *bool `xml:"IncludeAPIs,omitempty"` }
type QueueId ¶ added in v0.22.0
type QueueId struct { // AccountId specifies the ID of the Storage Account where this Queue exists. AccountId accounts.AccountId // QueueName specifies the name of this Queue. QueueName string }
func NewQueueID ¶ added in v0.22.0
func ParseQueueID ¶ added in v0.22.0
ParseQueueID parses `input` into a Queue ID using a known `domainSuffix`
type RetentionPolicy ¶
type SetMetaDataInput ¶
type SetMetaDataResponse ¶
type SetStorageServicePropertiesInput ¶
type SetStorageServicePropertiesInput struct {
Properties StorageServiceProperties
}
type StorageQueue ¶
type StorageQueue interface { Delete(ctx context.Context, queueName string) (DeleteResponse, error) GetMetaData(ctx context.Context, queueName string) (GetMetaDataResponse, error) SetMetaData(ctx context.Context, queueName string, input SetMetaDataInput) (SetMetaDataResponse, error) Create(ctx context.Context, queueName string, input CreateInput) (CreateResponse, error) GetResourceManagerResourceID(subscriptionID, resourceGroup, accountName, queueName string) string SetServiceProperties(ctx context.Context, input SetStorageServicePropertiesInput) (SetStorageServicePropertiesResponse, error) GetServiceProperties(ctx context.Context) (GetStorageServicePropertiesResponse, error) }
type StorageServiceProperties ¶
type StorageServiceProperties struct { Logging *LoggingConfig `xml:"Logging,omitempty"` HourMetrics *MetricsConfig `xml:"HourMetrics,omitempty"` MinuteMetrics *MetricsConfig `xml:"MinuteMetrics,omitempty"` Cors *Cors `xml:"Cors,omitempty"` }
Click to show internal directories.
Click to hide internal directories.