gcs

package
v0.0.0-...-31173c4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const EnvKeyGCSToken = "GCS_KEY"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Update(name string, data []byte) error
	Close() error
}

func NewClientWrapper

func NewClientWrapper(project string, bucketName string) Client

func NewInMemoryClient

func NewInMemoryClient() Client

type ClientWrapper

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

func (*ClientWrapper) Close

func (client *ClientWrapper) Close() error

func (*ClientWrapper) Update

func (client *ClientWrapper) Update(name string, data []byte) error

type InMemoryClient

type InMemoryClient struct{}

func (*InMemoryClient) Close

func (c *InMemoryClient) Close() error

func (*InMemoryClient) Update

func (c *InMemoryClient) Update(name string, data []byte) error

Jump to

Keyboard shortcuts

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