Documentation ¶
Index ¶
- func Credential[T any](client *Client[T]) any
- func GetAudience(clOpts *ClientOptions) string
- func InnerClient[T any](client *Client[T]) *T
- func SharedKey[T any](client *Client[T]) *exported.SharedKeyCredential
- func SharedKeyComposite[T, U any](client *CompositeClient[T, U]) *exported.SharedKeyCredential
- type Client
- func InnerClients[T, U any](client *CompositeClient[T, U]) (*Client[T], *U)
- func NewBlobClient(blobURL string, azClient *azcore.Client, credential any, ...) *Client[generated.BlobClient]
- func NewClient[T any](inner *T) *Client[T]
- func NewContainerClient(containerURL string, azClient *azcore.Client, credential any, ...) *Client[generated.ContainerClient]
- func NewServiceClient(containerURL string, azClient *azcore.Client, credential any, ...) *Client[generated.ServiceClient]
- type ClientOptions
- type CompositeClient
- func NewAppendBlobClient(blobURL string, azClient *azcore.Client, ...) *CompositeClient[generated.BlobClient, generated.AppendBlobClient]
- func NewBlockBlobClient(blobURL string, azClient *azcore.Client, ...) *CompositeClient[generated.BlobClient, generated.BlockBlobClient]
- func NewPageBlobClient(blobURL string, azClient *azcore.Client, ...) *CompositeClient[generated.BlobClient, generated.PageBlobClient]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Credential ¶ added in v1.1.0
func GetAudience ¶ added in v1.3.0
func GetAudience(clOpts *ClientOptions) string
func InnerClient ¶
func SharedKeyComposite ¶
func SharedKeyComposite[T, U any](client *CompositeClient[T, U]) *exported.SharedKeyCredential
Types ¶
type Client ¶
type Client[T any] struct { // contains filtered or unexported fields }
func InnerClients ¶
func InnerClients[T, U any](client *CompositeClient[T, U]) (*Client[T], *U)
func NewBlobClient ¶
func NewBlobClient(blobURL string, azClient *azcore.Client, credential any, options *ClientOptions) *Client[generated.BlobClient]
func NewContainerClient ¶
func NewContainerClient(containerURL string, azClient *azcore.Client, credential any, options *ClientOptions) *Client[generated.ContainerClient]
func NewServiceClient ¶
func NewServiceClient(containerURL string, azClient *azcore.Client, credential any, options *ClientOptions) *Client[generated.ServiceClient]
type ClientOptions ¶ added in v1.1.0
type ClientOptions struct { azcore.ClientOptions // Audience to use when requesting tokens for Azure Active Directory authentication. // Only has an effect when credential is of type TokenCredential. The value could be // https://storage.azure.com/ (default) or https://<account>.blob.core.windows.net. Audience string }
ClientOptions contains the optional parameters when creating a Client.
func GetClientOptions ¶ added in v1.3.0
func GetClientOptions[T any](client *Client[T]) *ClientOptions
type CompositeClient ¶
type CompositeClient[T, U any] struct { // contains filtered or unexported fields }
func NewAppendBlobClient ¶
func NewAppendBlobClient(blobURL string, azClient *azcore.Client, sharedKey *exported.SharedKeyCredential) *CompositeClient[generated.BlobClient, generated.AppendBlobClient]
func NewBlockBlobClient ¶
func NewBlockBlobClient(blobURL string, azClient *azcore.Client, sharedKey *exported.SharedKeyCredential) *CompositeClient[generated.BlobClient, generated.BlockBlobClient]
func NewPageBlobClient ¶
func NewPageBlobClient(blobURL string, azClient *azcore.Client, sharedKey *exported.SharedKeyCredential) *CompositeClient[generated.BlobClient, generated.PageBlobClient]
Click to show internal directories.
Click to hide internal directories.