base

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 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.0.1

func GetAudience(clOpts *ClientOptions) string

func InnerClient

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

func InnerClients

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

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 NewClient

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

func NewServiceClient

func NewServiceClient(queueURL string, pipeline runtime.Pipeline, sharedKey *exported.SharedKeyCredential) *Client[generated.ServiceClient]

type ClientOptions added in v1.0.1

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>.queue.core.windows.net.
	Audience string
}

ClientOptions contains the optional parameters when creating a Client.

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