m

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSBucket

type GCSBucket struct {
	Name   string
	Region string
}

type GCSManager

type GCSManager interface {
	Bucket() string
	SetBucket(bucket string) error
	AvailableBuckets() []*storage.BucketAttrs
	Prefix() string

	MoveUp() error
	MoveDown(prefix string) error
	List() (prefixes []string, keys []string, err error)
	ListObjects(key string) ([]*storage.ObjectAttrs, error)
	Download(object *storage.ObjectAttrs, destPath string) (n int64, err error)
	// contains filtered or unexported methods
}

func NewGCSManager

func NewGCSManager(project string) GCSManager

type GCSModel

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

func (*GCSModel) AvailableBuckets

func (gcsm *GCSModel) AvailableBuckets() []*storage.BucketAttrs

func (*GCSModel) Bucket

func (gcsm *GCSModel) Bucket() string

func (*GCSModel) Download

func (gcsm *GCSModel) Download(objectAttrs *storage.ObjectAttrs, destPath string) (n int64, err error)

func (*GCSModel) List

func (gcsm *GCSModel) List() (prefixes []string, keys []string, err error)

func (*GCSModel) ListObjects

func (gcsm *GCSModel) ListObjects(key string) ([]*storage.ObjectAttrs, error)

func (*GCSModel) MoveDown

func (gcsm *GCSModel) MoveDown(prefix string) error

func (*GCSModel) MoveUp

func (gcsm *GCSModel) MoveUp() error

func (*GCSModel) Prefix

func (gcsm *GCSModel) Prefix() string

func (*GCSModel) SetBucket

func (gcsm *GCSModel) SetBucket(bucket string) error

Jump to

Keyboard shortcuts

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