object

package
v1.82.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TimestampFormat = "2006-01-02 15:04:05 MST"
)

Variables

This section is empty.

Functions

func ApplyFilters

func ApplyFilters(obj ObjectInterface, filters []ObjectFilterFunc) bool

func ApplyVersionedFilters

func ApplyVersionedFilters(obj ObjectVersionInterface, filters []ObjectVersionFilterFunc) bool

Types

type ListObjectsItemOutput

type ListObjectsItemOutput struct {
	Path          string  `json:"name"`
	Size          int64   `json:"size"`
	LastModified  string  `json:"last_modified,omitempty"`
	Dir           bool    `json:"dir"`
	VersionID     *string `json:"version_id"`
	VersionNumber *uint64 `json:"version_number"`
}

type ListObjectsOutput

type ListObjectsOutput []ListObjectsItemOutput

func (*ListObjectsOutput) ToJSON

func (o *ListObjectsOutput) ToJSON()

func (*ListObjectsOutput) ToTable

func (o *ListObjectsOutput) ToTable()

func (*ListObjectsOutput) ToText

func (o *ListObjectsOutput) ToText()

type Object

type Object struct {
	*types.Object
}

func (*Object) GetKey

func (o *Object) GetKey() *string

func (*Object) GetLastModified

func (o *Object) GetLastModified() *time.Time

func (*Object) GetListObjectsItemOutput

func (o *Object) GetListObjectsItemOutput() *ListObjectsItemOutput

func (*Object) GetSize

func (o *Object) GetSize() int64

type ObjectFilterFunc

type ObjectFilterFunc func(ObjectInterface) bool

func NewerThanFilterFunc

func NewerThanFilterFunc(t time.Time) ObjectFilterFunc

func OlderThanFilterFunc

func OlderThanFilterFunc(t time.Time) ObjectFilterFunc

type ObjectInterface

type ObjectInterface interface {
	GetKey() *string
	GetSize() int64
	GetLastModified() *time.Time
	GetListObjectsItemOutput() *ListObjectsItemOutput
}

type ObjectVersion

type ObjectVersion struct {
	*types.ObjectVersion
	VersionNumber uint64
}

func (*ObjectVersion) GetIsLatest

func (o *ObjectVersion) GetIsLatest() bool

func (*ObjectVersion) GetKey

func (o *ObjectVersion) GetKey() *string

func (*ObjectVersion) GetLastModified

func (o *ObjectVersion) GetLastModified() *time.Time

func (*ObjectVersion) GetListObjectsItemOutput

func (o *ObjectVersion) GetListObjectsItemOutput() *ListObjectsItemOutput

func (*ObjectVersion) GetSize

func (o *ObjectVersion) GetSize() int64

func (*ObjectVersion) GetVersionID added in v1.78.1

func (o *ObjectVersion) GetVersionID() *string

func (*ObjectVersion) GetVersionNumber

func (o *ObjectVersion) GetVersionNumber() uint64

func (*ObjectVersion) SetVersionNumber

func (o *ObjectVersion) SetVersionNumber(versionNumber uint64)

type ObjectVersionFilterFunc

type ObjectVersionFilterFunc func(ObjectVersionInterface) bool

type ObjectVersionInterface

type ObjectVersionInterface interface {
	ObjectInterface
	GetIsLatest() bool
	GetVersionID() *string
	SetVersionNumber(uint64)
	GetVersionNumber() uint64
}

Jump to

Keyboard shortcuts

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