storage

package
v0.0.0-...-c327e57 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
	ExporterKind   types.Kind = "exporter"
	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"
	TaskKind       types.Kind = "task"
	JobKind        types.Kind = "job"
	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.System, 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
	Collection() types.Collection
	Filter() types.Filter
}

func Get

func Get(v *viper.Viper) (Storage, error)

Directories

Path Synopsis
v3

Jump to

Keyboard shortcuts

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