gcs

package
v0.0.0-...-7570391 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSBlobStore

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

func NewGCSBlobStore

func NewGCSBlobStore(projectName string, bucketName string, tsrc oauth2.TokenSource, flags int) (*GCSBlobStore, error)

func (*GCSBlobStore) BlobSize

func (bs *GCSBlobStore) BlobSize(blobpath string) (int64, error)

func (*GCSBlobStore) Flags

func (bs *GCSBlobStore) Flags() int

func (*GCSBlobStore) ImplName

func (*GCSBlobStore) ImplName() string

func (*GCSBlobStore) ListBlobs

func (bs *GCSBlobStore) ListBlobs() ([]string, error)

func (*GCSBlobStore) OpenReader

func (bs *GCSBlobStore) OpenReader(blobpath string) (rc io.ReadCloser, err error)

func (*GCSBlobStore) OpenWriter

func (bs *GCSBlobStore) OpenWriter(blobpath string) (io.WriteCloser, error)

func (*GCSBlobStore) RemoveBlob

func (bs *GCSBlobStore) RemoveBlob(blobpath string) error

type Reader

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

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Read

func (r *Reader) Read(p []byte) (int, error)

type Writer

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

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) Write

func (w *Writer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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