gcs

package
v0.0.0-...-c9fddc1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 12 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 {
	Bucket string `json:"bucket"`
}

func (*Config) OpenStorage

func (c *Config) OpenStorage(ctx context.Context) (storage.Storage, error)

func (*Config) References

func (c *Config) References() []types.Ref

type Storage

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

func New

func New(ctx context.Context, bucket string, opts ...option.ClientOption) (*Storage, error)

func (*Storage) BeginBlob

func (s *Storage) BeginBlob(ctx context.Context) (storage.BlobWriter, error)

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) DeletePin

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

func (*Storage) FetchBlob

func (s *Storage) FetchBlob(ctx context.Context, ref types.Ref) (io.ReadCloser, uint64, error)

func (*Storage) GetPin

func (s *Storage) GetPin(ctx context.Context, name string) (types.Ref, error)

func (*Storage) IterateBlobs

func (s *Storage) IterateBlobs(ctx context.Context) storage.Iterator

func (*Storage) IteratePins

func (s *Storage) IteratePins(ctx context.Context) storage.PinIterator

func (*Storage) SetPin

func (s *Storage) SetPin(ctx context.Context, name string, ref types.Ref) error

func (*Storage) StatBlob

func (s *Storage) StatBlob(ctx context.Context, ref types.Ref) (uint64, error)

Jump to

Keyboard shortcuts

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