gcs

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) *driver

func ObjectsExist

func ObjectsExist(client *storage.Client, files ...filab.Path) bool

func Type

func Type() filab.DriverType

Types

type GCSPath

type GCSPath struct {
	Bucket string
	Path   string
}

func MustParseGcs

func MustParseGcs(s string) GCSPath

func ParseGcsPath

func ParseGcsPath(s string) (GCSPath, error)

func (GCSPath) BaseStr added in v1.1.0

func (l GCSPath) BaseStr() string

func (GCSPath) Copy

func (g GCSPath) Copy() filab.Path

func (GCSPath) Dir added in v1.1.0

func (l GCSPath) Dir() filab.Path

func (GCSPath) DirStr added in v1.1.0

func (l GCSPath) DirStr() string

func (GCSPath) Join

func (g GCSPath) Join(p ...string) filab.Path

func (GCSPath) String

func (g GCSPath) String() string

func (GCSPath) Type

func (g GCSPath) Type() filab.DriverType

func (GCSPath) WithBucket

func (g GCSPath) WithBucket(b string) GCSPath

func (GCSPath) WithPath

func (g GCSPath) WithPath(p string) GCSPath

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithBlock

func WithBlock() Option

func WithClient

func WithClient(c *storage.Client) Option

func WithKeyFile

func WithKeyFile(f string) Option

func WithTimeout

func WithTimeout(t time.Duration) Option

Jump to

Keyboard shortcuts

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