gcp

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FirestoreRMOp     = FirestoreOp("rm")
	FirestoreMVOp     = FirestoreOp("mv")
	FirestoreUpdateOp = FirestoreOp("update")
)
View Source
var (
	GCSOperationRM = GCSOperation("rm")
	GCSOperationMV = GCSOperation("mv")
)

Functions

This section is empty.

Types

type BQ added in v0.0.30

type BQ struct {
	Client        *bigquery.Client
	ProjectID     string
	Key           *string
	RetrieveField *string
	RetrieveQuery *string
	ClearQuery    *string
	FailQuery     *string
	// contains filtered or unexported fields
}

func (*BQ) Cleanup added in v0.0.30

func (d *BQ) Cleanup() error

func (*BQ) ClearWork added in v0.0.30

func (d *BQ) ClearWork() error

func (*BQ) GetWork added in v0.0.30

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

func (*BQ) HandleFailure added in v0.0.30

func (d *BQ) HandleFailure() error

func (*BQ) Init added in v0.0.30

func (d *BQ) Init() error

func (*BQ) LoadEnv added in v0.0.30

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

func (*BQ) LoadFlags added in v0.0.30

func (d *BQ) LoadFlags() error

type FirestoreOp added in v0.0.44

type FirestoreOp string

type GCPFirestore added in v0.0.44

type GCPFirestore struct {
	Client                  *firestore.Client
	RetrieveCollection      *string
	RetrieveDocument        *string
	RetrieveQuery           *GCPFirestoreQuery
	RetrieveDocumentJSONKey *string
	Limit                   *int
	ClearOp                 *FirestoreOp
	ClearUpdate             *map[string]any
	ClearCollection         *string
	FailOp                  *FirestoreOp
	FailUpdate              *map[string]any
	FailCollection          *string
	ProjectID               string
	// contains filtered or unexported fields
}

func (*GCPFirestore) Cleanup added in v0.0.44

func (d *GCPFirestore) Cleanup() error

func (*GCPFirestore) ClearWork added in v0.0.44

func (d *GCPFirestore) ClearWork() error

func (*GCPFirestore) Data added in v0.0.44

func (d *GCPFirestore) Data(obj []map[string]interface{}) (io.Reader, error)

func (*GCPFirestore) GetWork added in v0.0.44

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

func (*GCPFirestore) HandleFailure added in v0.0.44

func (d *GCPFirestore) HandleFailure() error

func (*GCPFirestore) Init added in v0.0.44

func (d *GCPFirestore) Init() error

func (*GCPFirestore) LoadEnv added in v0.0.44

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

func (*GCPFirestore) LoadFlags added in v0.0.44

func (d *GCPFirestore) LoadFlags() error

type GCPFirestoreQuery added in v0.0.44

type GCPFirestoreQuery struct {
	Path    *string
	Op      *string
	Value   any
	OrderBy *string
	Order   *firestore.Direction
}

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