Documentation
¶
Index ¶
- type Bag
- func (pb *Bag) Current() *PageState
- func (pb *Bag) Marshal() (string, error)
- func (pb *Bag) Next(pageToken string) error
- func (pb *Bag) NextToken(pageToken string) (string, error)
- func (pb *Bag) PageToken() string
- func (pb *Bag) Pop() *PageState
- func (pb *Bag) Push(state PageState)
- func (pb *Bag) ResourceID() string
- func (pb *Bag) ResourceTypeID() string
- func (pb *Bag) Unmarshal(input string) error
- type PageState
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bag ¶
type Bag struct {
// contains filtered or unexported fields
}
Bag holds pagination states that can be serialized for use as page tokens. It acts as a stack that you can push and pop pagination operations from.
func (*Bag) NextToken ¶
Next pops the current token, and pushes a copy of it with an updated page token.
func (*Bag) ResourceID ¶
ResourceID returns the resource ID for the current state.
func (*Bag) ResourceTypeID ¶
ResourceTypeID returns the resource type id for the current state.
Click to show internal directories.
Click to hide internal directories.