gcs

package
v0.0.0-...-2858ac2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSStorage

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

func NewGCSStorage

func NewGCSStorage(ctx context.Context, bucketName string, opts ...option.ClientOption) (*GCSStorage, error)

func (*GCSStorage) Delete

func (s *GCSStorage) Delete(key string) error

func (*GCSStorage) Exists

func (s *GCSStorage) Exists(key string) (bool, error)

func (*GCSStorage) List

func (s *GCSStorage) List(prefix string) ([]oss.OSSPath, error)

func (*GCSStorage) Load

func (s *GCSStorage) Load(key string) ([]byte, error)

func (*GCSStorage) Save

func (s *GCSStorage) Save(key string, data []byte) error

func (*GCSStorage) State

func (s *GCSStorage) State(key string) (oss.OSSState, error)

func (*GCSStorage) Type

func (s *GCSStorage) Type() string

Jump to

Keyboard shortcuts

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