info

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Code generated by go generate internal/cmd; DO NOT EDIT.

Package info intend to provide all available info from storage/object.

Index

Constants

View Source
const (
	ObjectMetaContentMD5  = "content-md5"
	ObjectMetaContentType = "content-type"
	ObjectMetaETag        = "etag"
	StorageMetaLocation   = "location"
	StorageStatisticCount = "count"
	StorageStatisticSize  = "size"
)

All available metadata.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectMeta

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

ObjectMeta is the metadata for ObjectMeta.

func NewObjectMeta

func NewObjectMeta() ObjectMeta

NewObjectMeta will create a new ObjectMeta metadata.

func (ObjectMeta) Get

func (m ObjectMeta) Get(key string) (interface{}, bool)

Get will get meta from object meta.

func (ObjectMeta) GetContentMD5

func (m ObjectMeta) GetContentMD5() (string, bool)

GetContentMD5 will get content-md5 value from metadata.

func (ObjectMeta) GetContentType

func (m ObjectMeta) GetContentType() (string, bool)

GetContentType will get content-type value from metadata.

func (ObjectMeta) GetETag

func (m ObjectMeta) GetETag() (string, bool)

GetETag will get etag value from metadata.

func (ObjectMeta) MustGetContentMD5

func (m ObjectMeta) MustGetContentMD5() string

MustGetcontent-md5 will get content-md5 value from metadata.

func (ObjectMeta) MustGetContentType

func (m ObjectMeta) MustGetContentType() string

MustGetcontent-type will get content-type value from metadata.

func (ObjectMeta) MustGetETag

func (m ObjectMeta) MustGetETag() string

MustGetetag will get etag value from metadata.

func (ObjectMeta) Set

func (m ObjectMeta) Set(key string, value interface{}) ObjectMeta

Set will get meta from object meta.

func (ObjectMeta) SetContentMD5

func (m ObjectMeta) SetContentMD5(v string) ObjectMeta

Setcontent-md5 will set content-md5 value into metadata.

func (ObjectMeta) SetContentType

func (m ObjectMeta) SetContentType(v string) ObjectMeta

Setcontent-type will set content-type value into metadata.

func (ObjectMeta) SetETag

func (m ObjectMeta) SetETag(v string) ObjectMeta

Setetag will set etag value into metadata.

type StorageMeta

type StorageMeta struct {
	Name    string
	WorkDir string
	// contains filtered or unexported fields
}

StorageMeta is the static metadata for StorageMeta.

func NewStorageMeta

func NewStorageMeta() StorageMeta

NewStorageMeta will create a new StorageMeta metadata.

func (StorageMeta) GetLocation

func (m StorageMeta) GetLocation() (string, bool)

GetLocation will get location value from metadata.

func (StorageMeta) MustGetLocation

func (m StorageMeta) MustGetLocation() string

MustGetlocation will get location value from metadata.

func (StorageMeta) SetLocation

func (m StorageMeta) SetLocation(v string) StorageMeta

Setlocation will set location value into metadata.

type StorageStatistic

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

StorageStatistic is the statistic metadata for StorageMeta.

func NewStorageStatistic

func NewStorageStatistic() StorageStatistic

NewStorageStatistic will create a new StorageMeta statistic.

func (StorageStatistic) GetCount

func (m StorageStatistic) GetCount() (int64, bool)

GetCount will get count value from metadata.

func (StorageStatistic) GetSize

func (m StorageStatistic) GetSize() (int64, bool)

GetSize will get size value from metadata.

func (StorageStatistic) MustGetCount

func (m StorageStatistic) MustGetCount() int64

MustGetcount will get count value from metadata.

func (StorageStatistic) MustGetSize

func (m StorageStatistic) MustGetSize() int64

MustGetsize will get size value from metadata.

func (StorageStatistic) SetCount

func (m StorageStatistic) SetCount(v int64) StorageStatistic

Setcount will set count value into metadata.

func (StorageStatistic) SetSize

Setsize will set size value into metadata.

Jump to

Keyboard shortcuts

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