usp_gcs

package
v0.0.0-...-a979c26 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSAdapter

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

func NewGCSAdapter

func NewGCSAdapter(conf GCSConfig) (*GCSAdapter, chan struct{}, error)

func (*GCSAdapter) Close

func (a *GCSAdapter) Close() error

type GCSConfig

type GCSConfig struct {
	ClientOptions       uspclient.ClientOptions `json:"client_options" yaml:"client_options"`
	BucketName          string                  `json:"bucket_name" yaml:"bucket_name"`
	ServiceAccountCreds string                  `json:"service_account_creds,omitempty" yaml:"service_account_creds,omitempty"`
	IsOneTimeLoad       bool                    `json:"single_load" yaml:"single_load"`
	Prefix              string                  `json:"prefix" yaml:"prefix"`
	ParallelFetch       int                     `json:"parallel_fetch" yaml:"parallel_fetch"`
}

func (*GCSConfig) Validate

func (c *GCSConfig) Validate() error

Jump to

Keyboard shortcuts

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