storage

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 10 Imported by: 30

Documentation

Index

Constants

View Source
const (
	NamespaceKind  types.Kind = "namespace"
	ServiceKind    types.Kind = "service"
	DeploymentKind types.Kind = "deployment"
	ClusterKind    types.Kind = "cluster"
	PodKind        types.Kind = "pod"
	IngressKind    types.Kind = "ingress"
	SystemKind     types.Kind = "system"
	NodeKind       types.Kind = "node"
	RouteKind      types.Kind = "route"
	VolumeKind     types.Kind = "volume"
	TriggerKind    types.Kind = "trigger"
	SecretKind     types.Kind = "secret"
	EndpointKind   types.Kind = "endpoint"
	UtilsKind      types.Kind = "utils"
	ManifestKind   types.Kind = "manifest"
	NetworkKind    types.Kind = "network"
	SubnetKind     types.Kind = "subnet"
	TestKind       types.Kind = "test"
)

Variables

This section is empty.

Functions

func GetOpts

func GetOpts() *types.Opts

func NewWatcher

func NewWatcher() chan *types.WatcherEvent

func StorageDelAssets

func StorageDelAssets(t *testing.T, stg Storage)

func StorageGetAssets

func StorageGetAssets(t *testing.T, stg Storage)

func StorageListAssets

func StorageListAssets(t *testing.T, stg Storage)

func StorageMapAssets

func StorageMapAssets(t *testing.T, stg Storage)

func StoragePutAssets

func StoragePutAssets(t *testing.T, stg Storage)

func StorageSetAssets

func StorageSetAssets(t *testing.T, stg Storage)

Types

type Storage

type Storage interface {
	Info(ctx context.Context, collection, name string) (*types.Runtime, error)
	Get(ctx context.Context, collection, name string, obj interface{}, opts *types.Opts) error
	List(ctx context.Context, collection, q string, obj interface{}, opts *types.Opts) error
	Map(ctx context.Context, collection, q string, obj interface{}, opts *types.Opts) error
	Put(ctx context.Context, collection, name string, obj interface{}, opts *types.Opts) error
	Set(ctx context.Context, collection, name string, obj interface{}, opts *types.Opts) error
	Del(ctx context.Context, collection, name string) error
	Watch(ctx context.Context, collection string, event chan *types.WatcherEvent, opts *types.Opts) error
	Key() types.Key
	Collection() types.Collection
	Filter() types.Filter
}

func Get

func Get(driver string) (Storage, error)

Directories

Path Synopsis
v3

Jump to

Keyboard shortcuts

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