gcs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewProvider

func NewProvider() (*Store, error)

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, key string) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, key string) (io.ReadCloser, error)

func (*Store) GetRange

func (s *Store) GetRange(ctx context.Context, key string, offset, length int64) (io.ReadCloser, error)

func (*Store) Head

func (s *Store) Head(ctx context.Context, key string) (*blob.ObjectInfo, error)

func (*Store) Name

func (s *Store) Name() string

func (*Store) Put

func (s *Store) Put(ctx context.Context, key string, r io.Reader, opts blob.PutOptions) error

func (*Store) SignedGetURL

func (s *Store) SignedGetURL(ctx context.Context, key string, ttl time.Duration) (string, error)

Jump to

Keyboard shortcuts

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