seq

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Seq

type Seq struct {
	// contains filtered or unexported fields
}

seq is an iterator over matched results

func New

func New(client *s3.Client, q *s3.ListObjectsV2Input, err error) *Seq

func (*Seq) Continue

func (seq *Seq) Continue(key stream.Thing) *Seq

Continue limited sequence from the cursor

func (*Seq) Cursor

func (seq *Seq) Cursor() stream.Thing

Cursor is the global position in the sequence

func (*Seq) Error

func (seq *Seq) Error() error

Error indicates if any error appears during I/O

func (*Seq) Head

func (seq *Seq) Head() (string, error)

Head selects the first element of matched collection.

func (*Seq) Limit

func (seq *Seq) Limit(n int64) *Seq

Limit sequence to N elements

func (*Seq) Tail

func (seq *Seq) Tail() bool

Tail selects the all elements except the first one

Jump to

Keyboard shortcuts

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