base

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Credential added in v1.1.0

func Credential[T any](client *Client[T]) any

func GetAudience added in v1.3.0

func GetAudience(clOpts *ClientOptions) string

func InnerClient

func InnerClient[T any](client *Client[T]) *T

func SharedKey

func SharedKey[T any](client *Client[T]) *exported.SharedKeyCredential

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 NewClient

func NewClient[T any](inner *T) *Client[T]

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL