package op

import "github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/op"

Index

Constants

const Kind = "Operation-Location"

Kind is the identifier of this type in a resume token.

Functions

func Applicable

func Applicable(resp *http.Response) bool

Applicable returns true if the LRO is using Operation-Location.

Types

type Poller

type Poller struct {
	Type     string `json:"type"`
	PollURL  string `json:"pollURL"`
	LocURL   string `json:"locURL"`
	FinalGET string `json:"finalGET"`
	CurState string `json:"state"`
}

Poller is an LRO poller that uses the Operation-Location pattern.

func New

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

New creates a new Poller from the provided initial response.

func (*Poller) Done

func (p *Poller) Done() bool

func (*Poller) FinalGetURL

func (p *Poller) FinalGetURL() string

func (*Poller) Status

func (p *Poller) Status() string

func (*Poller) URL

func (p *Poller) URL() string

func (*Poller) Update

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

Source Files

op.go

Version
v0.21.0
Published
Jan 11, 2022
Platform
linux/amd64
Imports
6 packages
Last checked
1 hour ago

Tools for package owners.