options

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func End

func End(end uint64) func(bounds *rangeBounds)

func Range

func Range(start, end uint64) func(bounds *rangeBounds)

func Start

func Start(start uint64) func(bounds *rangeBounds)

Types

type AbortMultipart

type AbortMultipart struct {
	UploadId string
}

type BuildRangeBounds

type BuildRangeBounds func(bounds *rangeBounds)

type CompleteMultipart

type CompleteMultipart struct {
	UploadId    string
	ObjectParts []ObjectPart
}

type CreateMultipart

type CreateMultipart struct {
}

type CreateOptions

type CreateOptions struct {
	Mode int8
}

type DeleteOptions

type DeleteOptions struct {
}

type ListOptions

type ListOptions struct {
}

type ObjectPart

type ObjectPart interface {
	GetPartNumber() uint
	GetETag() string
}

type PreSignOperation

type PreSignOperation int
const (
	ReadOp PreSignOperation = iota + 1
	WriteOp
	WriteMultipartOp
)

func (PreSignOperation) String

func (p PreSignOperation) String() string

type PreSignOptions

type PreSignOptions struct {
	Op PreSignOperation
	*ReadOptions
	*WriteOptions
	*WriteMultipart
	Expire time.Duration
}

type RangeBounds

type RangeBounds interface {
	Offset() *uint64
	Size() *uint64
	String() string
}

func NewBytesRange

func NewBytesRange(offset, size *uint64) RangeBounds

func NewRangeBounds

func NewRangeBounds(opts ...BuildRangeBounds) RangeBounds

type ReadOptions

type ReadOptions struct {
	Offset *uint64
	Size   *uint64
}

type StatOptions

type StatOptions struct {
}

type WriteMultipart

type WriteMultipart struct {
	UploadId   string
	PartNumber uint
	Size       uint64
}

type WriteOptions

type WriteOptions struct {
	Size uint64
}

Jump to

Keyboard shortcuts

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