objects

package
v0.33.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetGroup = utils.NewLazyLoader[core.Grouper](func() core.Grouper {
	return core.NewStaticGroup(
		core.DescriptorSpec{
			Name:        "objects",
			Description: "Object operations for Object Storage API",
		},
		func() []core.Descriptor {
			return []core.Descriptor{
				acl.GetGroup(),
				getCopy(),
				getCopyAll(),
				getDelete(),
				getDeleteAll(),
				getDownload(),
				getDownloadAll(),
				getHead(),
				getList(),
				getMoveDir(),
				getMove(),
				object_lock.GetGroup(),
				getSync(),
				getUpload(),
				getUploadDir(),
				getPresign(),
				getPublicUrl(),
				getVersions(),
			}
		},
	)
})

Functions

func List

func List(ctx context.Context, params listParams, cfg common.Config) (result listResponse, err error)

Types

type ListObjectVersionsResponse

type ListObjectVersionsResponse struct {
	XMLName  xml.Name        `xml:"ListVersionsResult"`
	Text     string          `xml:",chardata"`
	Versions []ObjectVersion `xml:"Version"`
}

type ObjectVersion

type ObjectVersion struct {
	Text         string       `xml:",chardata"`
	VersionID    string       `xml:"VersionId"`
	IsLatest     bool         `xml:"IsLatest"`
	Key          string       `xml:"Key"`
	LastModified string       `xml:"LastModified"`
	ETag         string       `xml:"ETag"`
	Size         int64        `xml:"Size"`
	Owner        common.Owner `xml:"Owner"`
	StorageClass string       `xml:"StorageClass"`
}

https://docs.aws.amazon.com/AmazonS3/latest/API/API_ObjectVersion.html

type UploadCounter

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

func (*UploadCounter) Increment

func (c *UploadCounter) Increment()

func (*UploadCounter) Value

func (c *UploadCounter) Value() uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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