gcs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(ctx context.Context, opts ...Option) (provider.Provider, error)

NewProvider initializes a new GCS provider.

Types

type Option

type Option func(context.Context, *Provider) error

Option is a functional option for configuring a GCS provider.

func WithCredentialsFile

func WithCredentialsFile(ctx context.Context, credentialsFile string) Option

WithCredentialsFile specifies the path to the service account key file for authentication.

type Provider

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

Provider is a GCS provider.

func (*Provider) AtomicUpdateObject

func (p *Provider) AtomicUpdateObject(ctx context.Context, bucket, key string, fn provider.UpdateObjectFunc) (string, error)

Jump to

Keyboard shortcuts

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