gcs

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ObjectDoesNotExistsError = echo.NewHTTPError(http.StatusNotFound, "Object Does Not Exists")
)

Custom Errors

Functions

This section is empty.

Types

type I

type I struct {
	Client stiface.Client
	Config config.Storage
	Bucket stiface.BucketHandle
}

I ...

func NewClient

func NewClient(conf config.Storage) (i I, err error)

NewClient ...

func (I) Add

func (i I) Add(key string, payload model.Payload, metadata *model.Metadata) (err error)

Add add deploy stack metadata if not exist

func (I) Delete

func (i I) Delete(key string) (err error)

Delete ...

func (I) Exists

func (i I) Exists(key string) (err error)

Exists ...

func (I) ForceAdd

func (i I) ForceAdd(key string, payload model.Payload, metadata *model.Metadata) (err error)

ForceAdd add deploy stack metadata exist or not

func (I) Get

func (i I) Get(key string) (payload model.Payload, err error)

Get ...

func (I) List

func (i I) List(key string) (keys model.Keys, err error)

List ...

func (I) Update

func (i I) Update(key string, payload model.Payload, metadata *model.Metadata) (err error)

Update ...

Jump to

Keyboard shortcuts

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