loc

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Applicable

func Applicable(resp *azcore.Response) bool

Applicable returns true if the LRO is using Location.

Types

type Poller

type Poller struct {
	// The poller's type, used for resume token processing.
	Type string `json:"type"`

	// The URL for polling.
	PollURL string `json:"pollURL"`

	// The LRO's current state.
	CurState string `json:"state"`
}

Poller is an LRO poller that uses the Location pattern.

func New

func New(resp *azcore.Response, pollerID string) (*Poller, error)

New creates a new Poller from the provided initial response.

func (*Poller) Done

func (p *Poller) Done() bool

Done returns true if the LRO has reached a terminal state.

func (*Poller) FinalGetURL

func (p *Poller) FinalGetURL() string

FinalGetURL returns the empty string as no final GET is required for this poller type.

func (*Poller) Status

func (p *Poller) Status() string

Status returns the status of the LRO.

func (*Poller) URL

func (p *Poller) URL() string

URL returns the polling URL.

func (*Poller) Update

func (p *Poller) Update(resp *azcore.Response) error

Update updates the Poller from the polling response.

Jump to

Keyboard shortcuts

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