package fake
import "github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pollers/fake"
Index ¶
- func Applicable(resp *http.Response) bool
- func CanResume(token map[string]any) bool
- func SanitizePollerPath(path string) string
- type Poller
Functions ¶
func Applicable ¶
Applicable returns true if the LRO is a fake.
func CanResume ¶
CanResume returns true if the token can rehydrate this poller type.
func SanitizePollerPath ¶
SanitizePollerPath removes any fake-appended suffix from a URL's path.
Types ¶
type Poller ¶
type Poller[T any] struct { // The API name from CtxAPINameKey APIName string `json:"apiName"` // The URL from Core-Fake-Poller header. FakeURL string `json:"fakeURL"` // The LRO's current state. FakeStatus string `json:"status"` // contains filtered or unexported fields }
Poller is an LRO poller that uses the Core-Fake-Poller pattern.
func New ¶
New creates a new Poller from the provided initial response. Pass nil for response to create an empty Poller for rehydration.
func (*Poller[T]) Done ¶
Done returns true if the LRO is in a terminal state.
func (*Poller[T]) Poll ¶
Poll retrieves the current state of the LRO.
func (*Poller[T]) Result ¶
Source Files ¶
- Version
- v1.18.0 (latest)
- Published
- Apr 3, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 4 hours ago –
Tools for package owners.