gcs

package
v0.0.0-...-8490895 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

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

func NewClient

func NewClient(ctx context.Context, bucketName string) (*State, error)

NewClient creates a new GCS client. On top of the usual GCS client, it also specifies the project ID and bucket name.

func (*State) DeleteObject

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

func (*State) ListObjects

func (s *State) ListObjects(ctx context.Context) ([]string, error)

func (*State) OpenObjectForReading

func (s *State) OpenObjectForReading(ctx context.Context, name string) (io.ReadCloser, error)

func (*State) OpenObjectForWriting

func (s *State) OpenObjectForWriting(ctx context.Context, name string) (io.WriteCloser, error)

Jump to

Keyboard shortcuts

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