etcd

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: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEndpointKey

func BuildEndpointKey(namespace, name string) string

func BuildPodKey

func BuildPodKey(namespace, service, deployment, name string) string

func BuildProcessKey

func BuildProcessKey(kind, hostname string) string

func BuildProcessLeadKey

func BuildProcessLeadKey(kind string) string

func BuildRouteKey

func BuildRouteKey(namespace string) string

func BuildSecretKey

func BuildSecretKey(namespace string) string

func BuildServiceKey

func BuildServiceKey(namespace, name string) string

func BuildVolumeKey

func BuildVolumeKey(namespace, name string) string

Types

type Collection

type Collection struct{}

func (Collection) Cluster

func (Collection) Cluster() string

func (Collection) Config

func (Collection) Config() string

func (Collection) Deployment

func (Collection) Deployment() string

func (Collection) Discovery

func (Collection) Discovery() types.DiscoveryCollection

func (Collection) Endpoint

func (Collection) Endpoint() string

func (Collection) Ingress

func (Collection) Manifest

func (Collection) Manifest() types.ManifestCollection

func (Collection) Namespace

func (Collection) Namespace() string

func (Collection) Network

func (Collection) Network() string

func (Collection) Node

func (Collection) Pod

func (Collection) Pod() string

func (Collection) Route

func (Collection) Route() string

func (Collection) Secret

func (Collection) Secret() string

func (Collection) Service

func (Collection) Service() string

func (Collection) Subnet

func (Collection) Subnet() string

func (Collection) System

func (Collection) System() string

func (Collection) Test

func (Collection) Test() string

func (Collection) Volume

func (Collection) Volume() string

type ConfigFilter

type ConfigFilter struct{}

func (ConfigFilter) ByNamespace

func (ConfigFilter) ByNamespace(namespace string) string

type DeploymentFilter

type DeploymentFilter struct{}

func (DeploymentFilter) ByNamespace

func (DeploymentFilter) ByNamespace(namespace string) string

func (DeploymentFilter) ByService

func (DeploymentFilter) ByService(namespace, service string) string

type DiscoveryCollection

type DiscoveryCollection struct{}

func (DiscoveryCollection) Info

func (DiscoveryCollection) Info() string

func (DiscoveryCollection) Status

func (DiscoveryCollection) Status() string

type EndpointFilter

type EndpointFilter struct{}

func (EndpointFilter) ByNamespace

func (EndpointFilter) ByNamespace(namespace string) string

type Filter

type Filter struct{}

func (Filter) Config

func (Filter) Config() types.ConfigFilter

func (Filter) Deployment

func (Filter) Deployment() types.DeploymentFilter

func (Filter) Endpoint

func (Filter) Endpoint() types.EndpointFilter

func (Filter) Namespace

func (Filter) Namespace() types.NamespaceFilter

func (Filter) Pod

func (Filter) Pod() types.PodFilter

func (Filter) Route

func (Filter) Route() types.RouteFilter

func (Filter) Secret

func (Filter) Secret() types.SecretFilter

func (Filter) Service

func (Filter) Service() types.ServiceFilter

func (Filter) Volume

func (Filter) Volume() types.VolumeFilter

type IngressCollection

type IngressCollection struct{}

func (IngressCollection) Info

func (IngressCollection) Info() string

func (IngressCollection) Status

func (IngressCollection) Status() string

type Key

type Key struct{}

func (Key) Config

func (Key) Config(namespace, name string) string

func (Key) Deployment

func (Key) Deployment(namespace, service, name string) string

func (Key) Discovery

func (Key) Discovery(name string) string

func (Key) Endpoint

func (Key) Endpoint(namespace, service string) string

func (Key) Ingress

func (Key) Ingress(name string) string

func (Key) Manifest

func (Key) Manifest(name string) string

func (Key) Namespace

func (Key) Namespace(name string) string

func (Key) Node

func (Key) Node(name string) string

func (Key) Pod

func (Key) Pod(namespace, service, deployment, name string) string

func (Key) Process

func (Key) Process(kind, hostname string, pid int, lead bool) string

func (Key) Route

func (Key) Route(namespace, name string) string

func (Key) Secret

func (Key) Secret(namespace, name string) string

func (Key) Service

func (Key) Service(namespace, name string) string

func (Key) Subnet

func (Key) Subnet(name string) string

func (Key) Volume

func (Key) Volume(namespace, name string) string

type ManifestCollection

type ManifestCollection struct{}

func (ManifestCollection) Cluster

func (ManifestCollection) Cluster() string

func (ManifestCollection) Endpoint

func (ManifestCollection) Endpoint() string

func (ManifestCollection) Ingress

func (ManifestCollection) Ingress() string

func (ManifestCollection) Node

func (ManifestCollection) Node() string

func (ManifestCollection) Pod

func (ManifestCollection) Pod(node string) string

func (ManifestCollection) Route

func (ManifestCollection) Route(ingress string) string

func (ManifestCollection) Secret

func (ManifestCollection) Secret() string

func (ManifestCollection) Subnet

func (ManifestCollection) Subnet() string

func (ManifestCollection) Volume

func (ManifestCollection) Volume(node string) string

type ManifestFilter

type ManifestFilter struct{}

func (ManifestFilter) ByKindManifest

func (ManifestFilter) ByKindManifest(node string, kind types.Kind) string

func (ManifestFilter) ByNodeManifest

func (ManifestFilter) ByNodeManifest(node string) string

type NamespaceFilter

type NamespaceFilter struct{}

type NodeCollection

type NodeCollection struct{}

func (NodeCollection) Info

func (NodeCollection) Info() string

func (NodeCollection) Status

func (NodeCollection) Status() string

type PodFilter

type PodFilter struct{}

func (PodFilter) ByDeployment

func (PodFilter) ByDeployment(namespace, service, deployment string) string

func (PodFilter) ByNamespace

func (PodFilter) ByNamespace(namespace string) string

func (PodFilter) ByService

func (PodFilter) ByService(namespace, service string) string

type RouteFilter

type RouteFilter struct{}

func (RouteFilter) ByNamespace

func (RouteFilter) ByNamespace(namespace string) string

type SecretFilter

type SecretFilter struct{}

func (SecretFilter) ByNamespace

func (SecretFilter) ByNamespace(namespace string) string

type ServiceFilter

type ServiceFilter struct{}

func (ServiceFilter) ByNamespace

func (ServiceFilter) ByNamespace(namespace string) string

type Storage

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

func New

func New() (*Storage, error)

func (Storage) Collection

func (s Storage) Collection() types.Collection

func (Storage) Del

func (s Storage) Del(ctx context.Context, collection string, name string) error

func (Storage) Filter

func (s Storage) Filter() types.Filter

func (Storage) Get

func (s Storage) Get(ctx context.Context, collection string, name string, obj interface{}, opts *types.Opts) error

func (Storage) Info

func (s Storage) Info(ctx context.Context, collection string, name string) (*types.Runtime, error)

func (Storage) Key

func (s Storage) Key() types.Key

func (Storage) List

func (s Storage) List(ctx context.Context, collection string, query string, obj interface{}, opts *types.Opts) error

func (Storage) Map

func (s Storage) Map(ctx context.Context, collection string, query string, obj interface{}, opts *types.Opts) error

func (Storage) Put

func (s Storage) Put(ctx context.Context, collection string, name string, obj interface{}, opts *types.Opts) error

func (Storage) Set

func (s Storage) Set(ctx context.Context, collection string, name string, obj interface{}, opts *types.Opts) error

func (Storage) Watch

func (s Storage) Watch(ctx context.Context, collection string, event chan *types.WatcherEvent, opts *types.Opts) error

type VolumeFilter

type VolumeFilter struct{}

func (VolumeFilter) ByNamespace

func (VolumeFilter) ByNamespace(namespace string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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