helpers

package
v0.0.0-...-f8b9555 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPollingFreq = 10 * time.Second
)

Variables

This section is empty.

Functions

func BuildClient

func BuildClient[T any](subID string, cred *azidentity.DefaultAzureCredential, builderFunc ClientBuilderFunc[T]) *T

func HandleErr

func HandleErr(err error)

func HandleErrPoller

func HandleErrPoller[T any](ctx context.Context, poller *armruntime.Poller[T]) T

func HandleErrWithResult

func HandleErrWithResult[T any](result T, err error) T

func MustGetenv

func MustGetenv(key string) string

Types

type ClientBuilderFunc

type ClientBuilderFunc[T any] func(string, azcore.TokenCredential, *arm.ClientOptions) (*T, error)

Jump to

Keyboard shortcuts

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