gcs

package
v0.0.0-...-84ddfae Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(opts StorageOptions) (*Storage, error)

func (*Storage) CreateObjectExclusively

func (s *Storage) CreateObjectExclusively(ctx context.Context,
	name string, objectMetadata storage.ObjectMetadata,
	data io.ReadSeeker) error

func (*Storage) DeleteObject

func (s *Storage) DeleteObject(ctx context.Context, name string) error

func (*Storage) GetObject

func (s *Storage) GetObject(ctx context.Context, name string) (io.ReadCloser, error)

func (*Storage) GetObjectMetadata

func (s *Storage) GetObjectMetadata(ctx context.Context, name string) (storage.ObjectMetadata, error)

func (*Storage) ListObjects

func (s *Storage) ListObjects(ctx context.Context, opts storage.ObjectListOptions) (*storage.ObjectList, error)

type StorageOptions

type StorageOptions struct {
	Bucket    string
	GCSClient *gcs.Client
	// HTTPClient is asumed to add Authorization headers on requests
	HTTPClient *http.Client
}

Jump to

Keyboard shortcuts

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