package base

import "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/base"

Index

Functions

func Credential

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

func GetAudience

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

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

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]

Source Files

clients.go

Version
v1.3.1
Published
Feb 28, 2024
Platform
windows/amd64
Imports
5 packages
Last checked
1 hour ago

Tools for package owners.