list

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiVersionV1 = "v1"
	ApiVersionV2 = "v2"
)

Variables

This section is empty.

Functions

func ListBucket

func ListBucket(ctx context.Context, info ApiInfo, handler Handler) (hasMore bool, err *data.CodeError)

Types

type ApiInfo

type ApiInfo struct {
	Manager    *storage.BucketManager
	ApiVersion ApiVersion
	Bucket     string
	Prefix     string
	Delimiter  string
	Marker     string
	V1Limit    int
}

type ApiVersion

type ApiVersion string

type Handler

type Handler func(marker string, dir string, item Item) (stop bool)

type Item

type Item storage.ListItem

func (*Item) FileSizeString

func (l *Item) FileSizeString() string

func (*Item) FileTypeString added in v2.11.0

func (l *Item) FileTypeString() string

func (*Item) IsNull added in v2.11.0

func (l *Item) IsNull() bool

func (*Item) PutTimeString

func (l *Item) PutTimeString() string

Jump to

Keyboard shortcuts

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