gcs

package
v0.0.0-...-e9451bc Latest Latest
Warning

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

Go to latest
Published: Mar 24, 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 Backend

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

func New

func New(bucket *storage.BucketHandle) Backend

func (Backend) Delete

func (b Backend) Delete(ctx context.Context, path string) error

func (Backend) DeleteIf

func (b Backend) DeleteIf(ctx context.Context, path string, expected backend.Version) error

func (Backend) GetMetadata

func (b Backend) GetMetadata(ctx context.Context, path string) (backend.Metadata, error)

func (Backend) List

func (b Backend) List(ctx context.Context, dirPath string) (backend.ListIter, error)

func (Backend) Read

func (b Backend) Read(ctx context.Context, path string) (backend.ReadReply, error)

func (Backend) ReadIfModified

func (b Backend) ReadIfModified(ctx context.Context,
	path string,
	version int64,
) (backend.ReadReply, error)

func (Backend) SetTagsIf

func (b Backend) SetTagsIf(
	ctx context.Context,
	path string,
	expected backend.Version,
	t backend.Tags,
) (backend.Metadata, error)

func (Backend) Write

func (b Backend) Write(ctx context.Context,
	path string,
	value []byte,
	t backend.Tags,
) (meta backend.Metadata, err error)

func (Backend) WriteIf

func (b Backend) WriteIf(
	ctx context.Context,
	path string,
	value []byte,
	expected backend.Version,
	t backend.Tags,
) (meta backend.Metadata, err error)

func (Backend) WriteIfNotExists

func (b Backend) WriteIfNotExists(
	ctx context.Context,
	path string,
	value []byte,
	t backend.Tags,
) (meta backend.Metadata, err error)

Jump to

Keyboard shortcuts

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