base

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAudience added in v1.1.2

func GetAudience(clOpts *ClientOptions) string

func GetPipelineOptions

func GetPipelineOptions(clOpts *ClientOptions) *runtime.PipelineOptions

func IdentityCredentialComposite

func IdentityCredentialComposite[T, K, U any](client *CompositeClient[T, K, U]) *azcore.TokenCredential

func InnerClients

func InnerClients[T, K, U any](client *CompositeClient[T, K, U]) (*T, *K, *U)

func SetPipelineOptions

func SetPipelineOptions(clOpts *ClientOptions, plOpts *runtime.PipelineOptions)

func SharedKeyComposite

func SharedKeyComposite[T, K, U any](client *CompositeClient[T, K, U]) *exported.SharedKeyCredential

Types

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
	// contains filtered or unexported fields
}

ClientOptions contains the optional parameters when creating a Client.

func GetCompositeClientOptions

func GetCompositeClientOptions[T, K, U any](client *CompositeClient[T, K, U]) *ClientOptions

type CompositeClient

type CompositeClient[T, K, U any] struct {
	// contains filtered or unexported fields
}

func NewFileSystemClient

func NewFileSystemClient(fsURL string, fsURLWithBlobEndpoint string, client *container.Client, azClient *azcore.Client, sharedKey *exported.SharedKeyCredential, identityCred *azcore.TokenCredential, options *ClientOptions) *CompositeClient[generated.FileSystemClient, generated.FileSystemClient, container.Client]

func NewPathClient

func NewPathClient(pathURL string, pathURLWithBlobEndpoint string, client *blockblob.Client, azClient *azcore.Client, sharedKey *exported.SharedKeyCredential, identityCred *azcore.TokenCredential, options *ClientOptions) *CompositeClient[generated.PathClient, generated_blob.BlobClient, blockblob.Client]

func NewServiceClient

func NewServiceClient(serviceURL string, serviceURLWithBlobEndpoint string, client *service.Client, azClient *azcore.Client, sharedKey *exported.SharedKeyCredential, identityCred *azcore.TokenCredential, options *ClientOptions) *CompositeClient[generated.ServiceClient, generated_blob.ServiceClient, service.Client]

Jump to

Keyboard shortcuts

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