types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PutObject = 100*S3Operation(WriteBucketReq) + iota
	CopyObject
	RemoveObject
	InitMultipartUpload
	MultipartUpload
	ListMultipartUpload
	CompleteMultipartUpload
	AbortMultipartUpload
	ListBucketMultiUploads
	DeleteObjects
)
View Source
const (
	NotImplementOperation = 100*S3Operation(InvalidReq) + iota
	ErrorOperation
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ListQuery

type ListQuery struct {
	Version         int
	Prefix          string
	Delimiter       string
	Marker          string
	MaxKeys         int64
	KeyMarker       string // only works with `VersionIDMarker`
	VersionIDMarker string
}

type MultipartQuery

type MultipartQuery struct {
	Uploads        bool
	UploadID       string
	PartNumber     int64
	MaxParts       int64
	Marker         int64
	KeyMarker      string
	UploadIDMarker string
	MaxUploads     int64
}

type RequestType

type RequestType uint32
const (
	AdminBucketReq RequestType = iota
	ListBucketsReq
	ReadBucketReq
	WriteBucketReq
	InvalidReq
)

type S3Object

type S3Object struct {
	Bucket    string
	Key       string
	Sha256    string
	MD5       string
	VersionID string
}

type S3Operation

type S3Operation uint32
const (
	PutBucket S3Operation = 100*S3Operation(AdminBucketReq) + iota
	DeleteBucket
)
const (
	ListBuckets S3Operation = 100*S3Operation(ListBucketsReq) + iota
	HeadBucket
)
const (
	GetBucket S3Operation = 100*S3Operation(ReadBucketReq) + iota
	GetObject
	HeadObject
	GetBucketVersions
)

func (S3Operation) String

func (s3 S3Operation) String() string

type S3Query

type S3Query struct {
	ListQuery     ListQuery
	MpQuery       MultipartQuery
	DstObj        S3Object
	SrcObj        S3Object
	Type          S3Operation
	BatchDelQuery bool
}

func (S3Query) HasCopy

func (q S3Query) HasCopy() bool

Jump to

Keyboard shortcuts

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