gcp

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GCSOperationRM = GCSOperation("rm")
	GCSOperationMV = GCSOperation("mv")
)

Functions

This section is empty.

Types

type GCPPubSub

type GCPPubSub struct {
	Client           *pubsub.Client
	ProjectID        string
	SubscriptionName string
}

func (*GCPPubSub) Cleanup

func (d *GCPPubSub) Cleanup() error

func (*GCPPubSub) ClearWork

func (d *GCPPubSub) ClearWork() error

func (*GCPPubSub) GetWork

func (d *GCPPubSub) GetWork() (io.Reader, error)

func (*GCPPubSub) HandleFailure

func (d *GCPPubSub) HandleFailure() error

func (*GCPPubSub) Init

func (d *GCPPubSub) Init() error

func (*GCPPubSub) LoadEnv

func (d *GCPPubSub) LoadEnv(prefix string) error

func (*GCPPubSub) LoadFlags

func (d *GCPPubSub) LoadFlags() error

type GCS added in v0.0.28

type GCS struct {
	Client    *storage.Client
	Bucket    string
	Key       string
	KeyRegex  string
	KeyPrefix string
	ClearOp   *GCSOp
	FailOp    *GCSOp
}

func (*GCS) Cleanup added in v0.0.28

func (d *GCS) Cleanup() error

func (*GCS) ClearWork added in v0.0.28

func (d *GCS) ClearWork() error

func (*GCS) GetWork added in v0.0.28

func (d *GCS) GetWork() (io.Reader, error)

func (*GCS) HandleFailure added in v0.0.28

func (d *GCS) HandleFailure() error

func (*GCS) Init added in v0.0.28

func (d *GCS) Init() error

func (*GCS) LoadEnv added in v0.0.28

func (d *GCS) LoadEnv(prefix string) error

func (*GCS) LoadFlags added in v0.0.28

func (d *GCS) LoadFlags() error

type GCSOp added in v0.0.28

type GCSOp struct {
	Operation   GCSOperation
	Bucket      string
	Key         string
	KeyTemplate string
}

func (*GCSOp) GetKey added in v0.0.28

func (o *GCSOp) GetKey() string

type GCSOperation added in v0.0.28

type GCSOperation string

Jump to

Keyboard shortcuts

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