mediastorage

package
v0.0.0-...-4d27765 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStorage

type LocalStorage struct {
	// contains filtered or unexported fields
}
var LocalStorageInstance *LocalStorage

func (*LocalStorage) GetData

func (instance *LocalStorage) GetData(key string) []byte

func (*LocalStorage) PutData

func (instance *LocalStorage) PutData(key string, data []byte)

put data

type StorageBucket

type StorageBucket struct {
	// contains filtered or unexported fields
}
var StorageBucketInstance *StorageBucket

func CreateStorageBucket

func CreateStorageBucket(bucketName string) *StorageBucket

func (*StorageBucket) Compose

func (sb *StorageBucket) Compose(bucket string, srcObjects []string, destObj string)

Generates a composite object

func (*StorageBucket) ListObjects

func (sb *StorageBucket) ListObjects() []byte

func (*StorageBucket) PutObject

func (sb *StorageBucket) PutObject(key string, data []byte)

put a new object

func (*StorageBucket) ReadBytes

func (sb *StorageBucket) ReadBytes(object string) []byte

read the object bytes

Jump to

Keyboard shortcuts

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