gcs

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path                  string `key:"path"`
	GlobMaxTotalSize      int64  `mapstructure:"glob.max_total_size"`
	GlobMaxObjectsMatched int    `mapstructure:"glob.max_objects_matched"`
	GlobMaxObjectsListed  int64  `mapstructure:"glob.max_objects_listed"`
	GlobPageSize          int    `mapstructure:"glob.page_size"`
	// contains filtered or unexported fields
}

func ParseConfig

func ParseConfig(props map[string]any) (*Config, error)

type Connector added in v0.27.0

type Connector struct{}

func (Connector) ConsumeAsIterator added in v0.27.0

func (c Connector) ConsumeAsIterator(ctx context.Context, env *connectors.Env, source *connectors.Source, l *zap.Logger) (connectors.FileIterator, error)

ConsumeAsIterator returns a file iterator over objects stored in gcs. The credential json is read from a env variable google_application_credentials. Additionally in case `env.AllowHostCredentials` is true it looks for "Application Default Credentials" as well

func (Connector) GetCredentialsInfo added in v0.27.0

func (c Connector) GetCredentialsInfo(ctx context.Context, env *connectors.Env) (string, bool, error)

func (Connector) HasAnonymousAccess added in v0.27.0

func (c Connector) HasAnonymousAccess(ctx context.Context, env *connectors.Env, source *connectors.Source) (bool, error)

func (Connector) ListBuckets added in v0.27.0

func (Connector) ListObjects added in v0.27.0

func (Connector) Spec added in v0.27.0

func (c Connector) Spec() connectors.Spec

Jump to

Keyboard shortcuts

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