gcs

package module
v0.0.0-...-49c8505 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 9 Imported by: 0

README

gokv-gcs

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = Options{
	Codec: encoding.JSON,
}
View Source
var ErrBucketMustNotBeEmpty = errors.New("The BucketName in the options must not be empty")

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(options Options) (Client, error)

func (Client) Close

func (c Client) Close() error

func (Client) Delete

func (c Client) Delete(key string) error

func (Client) Get

func (c Client) Get(key string, value interface{}) (found bool, returnErr error)

func (Client) Object

func (c Client) Object(key string) *storage.ObjectHandle

func (Client) Set

func (c Client) Set(key string, v interface{}) (returnErr error)

type Options

type Options struct {
	BucketName string
	BasePath   string
	Codec      encoding.Codec
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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