base

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAudience added in v1.2.0

func GetAudience(clOpts *ClientOptions) string

func GetPipelineOptions added in v1.1.0

func GetPipelineOptions(clOpts *ClientOptions) *runtime.PipelineOptions

func InnerClient

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

func SetPipelineOptions added in v1.1.0

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

func SharedKey

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

Types

type Client

type Client[T any] struct {
	// contains filtered or unexported fields
}

func NewDirectoryClient

func NewDirectoryClient(directoryURL string, azClient *azcore.Client, sharedKey *exported.SharedKeyCredential, options *ClientOptions) *Client[generated.DirectoryClient]

func NewFileClient

func NewFileClient(fileURL string, azClient *azcore.Client, sharedKey *exported.SharedKeyCredential, options *ClientOptions) *Client[generated.FileClient]

func NewServiceClient

func NewServiceClient(serviceURL string, azClient *azcore.Client, sharedKey *exported.SharedKeyCredential, options *ClientOptions) *Client[generated.ServiceClient]

func NewShareClient

func NewShareClient(shareURL string, azClient *azcore.Client, sharedKey *exported.SharedKeyCredential, options *ClientOptions) *Client[generated.ShareClient]

type ClientOptions

type ClientOptions struct {
	azcore.ClientOptions

	// AllowTrailingDot specifies if a trailing dot present in request url should be trimmed or not.
	AllowTrailingDot *bool

	// FileRequestIntent is required when using TokenCredential for authentication.
	// Acceptable value is backup.
	FileRequestIntent *generated.ShareTokenIntent

	// AllowSourceTrailingDot specifies if a trailing dot present in source url should be trimmed or not.
	AllowSourceTrailingDot *bool

	// 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>.file.core.windows.net.
	Audience string
	// contains filtered or unexported fields
}

ClientOptions contains the optional parameters when creating a Client.

func GetClientOptions added in v1.1.0

func GetClientOptions[T any](client *Client[T]) *ClientOptions

Jump to

Keyboard shortcuts

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