data

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidKeyAttributes = "key attributes not initialised"

Variables

This section is empty.

Functions

func GetFileInfoKeyName

func GetFileInfoKeyName(objectName string, bucketCreationTime time.Time, bucketName string) (string, error)

Types

type FileInfo

type FileInfo struct {
	Key              FileInfoKey
	ObjectGeneration int64
	Offset           uint64
	FileSize         uint64
}

func (FileInfo) Size

func (fi FileInfo) Size() uint64

type FileInfoKey

type FileInfoKey struct {
	BucketName         string
	BucketCreationTime time.Time
	ObjectName         string
}

func (FileInfoKey) Key

func (fik FileInfoKey) Key() (string, error)

Key will return a string, combining all the attributes of FileInfoKey. Returns error in case of uninitialized value.

type FileSpec

type FileSpec struct {
	Path     string
	FilePerm os.FileMode
	DirPerm  os.FileMode
}

Jump to

Keyboard shortcuts

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