utils

package
v2.0.0-...-5e4c55b Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTransport *http.Transport

Functions

func GetDefaultOption

func GetDefaultOption(apiVersion string) *arm.ClientOptions

Types

type CreateOrUpdateFunc

type CreateOrUpdateFunc[Type interface{}] interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, resourceParam Type) (*Type, error)
}

CreateOrUpdate creates or updates a service resource.

type DeleteFunc

type DeleteFunc[Type interface{}] interface {
	Delete(ctx context.Context, resourceGroupName string, resourceName string) error
}

Delete deletes a service resource by name.

type FuncPolicyWrapper

type FuncPolicyWrapper func(req *policy.Request) (*http.Response, error)

func (FuncPolicyWrapper) Do

type GetFunc

type GetFunc[Type interface{}] interface {
	Get(ctx context.Context, resourceGroupName string, resourceName string) (result *Type, rerr error)
}

Get gets the service resource

type GetWithExpandFunc

type GetWithExpandFunc[Type interface{}] interface {
	Get(ctx context.Context, resourceGroupName string, resourceName string, expand *string) (result *Type, rerr error)
}

Get gets the service resource

type ListFunc

type ListFunc[Type interface{}] interface {
	List(ctx context.Context, resourceGroupName string) (result []*Type, rerr error)
}

List gets a list of service resource in the resource group.

type PollerWrapper

type PollerWrapper[ResponseType interface{}] struct {
	// contains filtered or unexported fields
}

func NewPollerWrapper

func NewPollerWrapper[ResponseType interface{}](poller *runtime.Poller[ResponseType], err error) *PollerWrapper[ResponseType]

func (*PollerWrapper[ResponseType]) WaitforPollerResp

func (handler *PollerWrapper[ResponseType]) WaitforPollerResp(ctx context.Context) (result *ResponseType, err error)

Poller is the poller to be used for polling. assume that the poller will ends

Jump to

Keyboard shortcuts

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