metadata

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

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

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

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

Package metadata intend to provide all available metadata.

Index

Constants

View Source
const (
	ObjectMetaContentMD5   = "content-md5"
	ObjectMetaContentType  = "content-type"
	ObjectMetaETag         = "etag"
	ObjectMetaStorageClass = "storage-class"
)

All available metadata.

View Source
const (
	StorageStatisticCount = "count"
	StorageStatisticSize  = "size"
)

All available metadata.

View Source
const (
	StorageMetaLocation = "location"
)

All available metadata.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectMeta added in v0.6.0

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

ObjectMeta is the metadata for ObjectMeta.

func NewObjectMeta added in v0.6.0

func NewObjectMeta() ObjectMeta

NewObjectMeta will create a new ObjectMeta metadata.

func (ObjectMeta) GetContentMD5 added in v0.6.0

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

GetContentMD5 will get content-md5 value from metadata.

func (ObjectMeta) GetContentType added in v0.6.0

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

GetContentType will get content-type value from metadata.

func (ObjectMeta) GetETag added in v0.6.0

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

GetETag will get etag value from metadata.

func (ObjectMeta) GetStorageClass added in v0.6.0

func (m ObjectMeta) GetStorageClass() (storageclass.Type, bool)

GetStorageClass will get storage-class value from metadata.

func (ObjectMeta) MustGetContentMD5 added in v0.6.0

func (m ObjectMeta) MustGetContentMD5() string

MustGetContentMD5 will get content-md5 value from metadata.

func (ObjectMeta) MustGetContentType added in v0.6.0

func (m ObjectMeta) MustGetContentType() string

MustGetContentType will get content-type value from metadata.

func (ObjectMeta) MustGetETag added in v0.6.0

func (m ObjectMeta) MustGetETag() string

MustGetETag will get etag value from metadata.

func (ObjectMeta) MustGetStorageClass added in v0.6.0

func (m ObjectMeta) MustGetStorageClass() storageclass.Type

MustGetStorageClass will get storage-class value from metadata.

func (ObjectMeta) SetContentMD5 added in v0.6.0

func (m ObjectMeta) SetContentMD5(v string) ObjectMeta

SetContentMD5 will set content-md5 value into metadata.

func (ObjectMeta) SetContentType added in v0.6.0

func (m ObjectMeta) SetContentType(v string) ObjectMeta

SetContentType will set content-type value into metadata.

func (ObjectMeta) SetETag added in v0.6.0

func (m ObjectMeta) SetETag(v string) ObjectMeta

SetETag will set etag value into metadata.

func (ObjectMeta) SetStorageClass added in v0.6.0

func (m ObjectMeta) SetStorageClass(v storageclass.Type) ObjectMeta

SetStorageClass will set storage-class value into metadata.

type StorageMeta added in v0.6.0

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

StorageMeta is the static metadata for StorageMeta.

func NewStorageMeta added in v0.6.0

func NewStorageMeta() StorageMeta

NewStorageMeta will create a new StorageMeta metadata.

func (StorageMeta) GetLocation added in v0.6.0

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

GetLocation will get location value from metadata.

func (StorageMeta) MustGetLocation added in v0.6.0

func (m StorageMeta) MustGetLocation() string

MustGetLocation will get location value from metadata.

func (StorageMeta) SetLocation added in v0.6.0

func (m StorageMeta) SetLocation(v string) StorageMeta

SetLocation will set location value into metadata.

type StorageStatistic added in v0.6.0

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

StorageStatistic is the statistic metadata for StorageMeta.

func NewStorageStatistic added in v0.6.0

func NewStorageStatistic() StorageStatistic

NewStorageStatistic will create a new StorageMeta statistic.

func (StorageStatistic) GetCount added in v0.6.0

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

GetCount will get count value from metadata.

func (StorageStatistic) GetSize added in v0.6.0

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

GetSize will get size value from metadata.

func (StorageStatistic) MustGetCount added in v0.6.0

func (m StorageStatistic) MustGetCount() int64

MustGetCount will get count value from metadata.

func (StorageStatistic) MustGetSize added in v0.6.0

func (m StorageStatistic) MustGetSize() int64

MustGetSize will get size value from metadata.

func (StorageStatistic) SetCount added in v0.6.0

func (m StorageStatistic) SetCount(v int64) StorageStatistic

SetCount will set count value into metadata.

func (StorageStatistic) SetSize added in v0.6.0

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