model

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: 0 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 string
const (
	GCS Backend = "gcs"
)

type I

type I interface {
	List(key string) (keys Keys, err error)
	Get(key string) (value Payload, err error)
	Exists(key string) (err error)
	Add(key string, value Payload, metadata *Metadata) (err error)
	ForceAdd(key string, value Payload, metadata *Metadata) (err error)
	Update(key string, value Payload, metadata *Metadata) (err error)
	Delete(key string) (err error)
}

I is generic blob kv access interface

type Key

type Key struct {
	Key      string   `json:"key"`
	Metadata Metadata `json:"metadata,omitempty"`
}

type Keys

type Keys []Key

type Metadata

type Metadata map[string]string

type Payload

type Payload map[string]interface{}

Jump to

Keyboard shortcuts

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