clientsupport

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoListAndMap

func DoListAndMap[T any, R any](p *runtime.Pager[T], m func(page T) []R, caller string) ([]R, error)

func NewArmClientOptions

func NewArmClientOptions(httpClient azurecommon.HTTPClient) *arm.ClientOptions

func ParseResponseError

func ParseResponseError(err error) error

Types

type ArmListPageMapper

type ArmListPageMapper[T any, R any] interface {
	GetOne() (R, error)
	Get() ([]R, error)
}

func NewArmListPageMapper

func NewArmListPageMapper[T any, R any](armPager *runtime.Pager[T], mapper func(page T) []R, caller string) ArmListPageMapper[T, R]

type ArmLroPoller

type ArmLroPoller[T any] interface {
	PollForResult(ctx context.Context, pollFreq time.Duration) (T, error)
}

func NewArmLroPoller

func NewArmLroPoller[T any](getPoller GetPollerFunc[T]) ArmLroPoller[T]

type GetPollerFunc

type GetPollerFunc[T any] func() (*runtime.Poller[T], error)

Jump to

Keyboard shortcuts

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