types

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrEntityExists          = errors.ErrEntityExists
	ErrOperationFailure      = errors.ErrOperationFailure
	ErrEntityNotFound        = errors.ErrEntityNotFound
	ErrStructArgIsNil        = errors.ErrStructArgIsNil
	ErrStructOutIsNil        = errors.ErrStructOutIsNil
	ErrStructArgIsInvalid    = errors.ErrStructArgIsInvalid
	ErrStructOutIsInvalid    = errors.ErrStructOutIsInvalid
	ErrStructOutIsNotPointer = errors.ErrStructOutIsNotPointer
)
View Source
const (
	STORAGEDELETEEVENT = types.EventActionDelete
	STORAGECREATEEVENT = types.EventActionCreate
	STORAGEUPDATEEVENT = types.EventActionUpdate
	STORAGEERROREVENT  = types.EventActionError
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	Namespace() string
	Service() string
	Deployment() string
	Cluster() string
	Pod() string
	Ingress() IngressCollection
	Discovery() DiscoveryCollection
	System() string
	Node() NodeCollection
	Route() string
	Volume() string
	Secret() string
	Config() string
	Endpoint() string
	Network() string
	Subnet() string
	Manifest() ManifestCollection
	Test() string
}

type ConfigFilter

type ConfigFilter interface {
	ByNamespace(namespace string) string
}

type DeploymentFilter

type DeploymentFilter interface {
	ByNamespace(namespace string) string
	ByService(namespace, service string) string
}

type DiscoveryCollection

type DiscoveryCollection interface {
	Info() string
	Status() string
}

type EndpointFilter

type EndpointFilter interface {
	ByNamespace(namespace string) string
}

type Event

type Event struct {
	Type   string
	Key    string
	Rev    int64
	Object interface{}
}

type Filter

type Filter interface {
	Namespace() NamespaceFilter
	Service() ServiceFilter
	Config() ConfigFilter
	Deployment() DeploymentFilter
	Pod() PodFilter
	Endpoint() EndpointFilter
	Route() RouteFilter
	Secret() SecretFilter
	Volume() VolumeFilter
}

type IngressCollection

type IngressCollection interface {
	Info() string
	Status() string
}

type Key

type Key interface {
	Namespace(name string) string
	Service(namespace, name string) string
	Deployment(namespace, service, name string) string
	Pod(namespace, service, deployment, name string) string
	Endpoint(namespace, service string) string
	Config(namespace, name string) string
	Secret(namespace, name string) string
	Volume(namespace, name string) string
	Ingress(name string) string
	Discovery(name string) string
	Process(kind, hostname string, pid int, lead bool) string
	Manifest(name string) string
	Node(name string) string
	Route(namespace, name string) string
	Subnet(name string) string
}

type Kind

type Kind string

func (Kind) String

func (k Kind) String() string

type ManifestCollection

type ManifestCollection interface {
	Node() string
	Cluster() string
	Pod(node string) string
	Volume(node string) string
	Route(ingress string) string
	Ingress() string
	Subnet() string
	Secret() string
	Endpoint() string
}

type NamespaceFilter

type NamespaceFilter interface {
}

type NodeCollection

type NodeCollection interface {
	Info() string
	Status() string
}

type Opts

type Opts struct {
	Ttl   uint64
	Force bool
	Rev   *int64
}

type PodFilter

type PodFilter interface {
	ByNamespace(namespace string) string
	ByService(namespace, service string) string
	ByDeployment(namespace, service, deployment string) string
}

type QueryFilter

type QueryFilter string

func (QueryFilter) String

func (qf QueryFilter) String() string

type RouteFilter

type RouteFilter interface {
	ByNamespace(namespace string) string
}

type Runtime

type Runtime struct {
	types.Runtime
}

type SecretFilter

type SecretFilter interface {
	ByNamespace(namespace string) string
}

type ServiceFilter

type ServiceFilter interface {
	ByNamespace(namespace string) string
}

type VolumeFilter

type VolumeFilter interface {
	ByNamespace(namespace string) string
}

type Watcher

type Watcher interface {
	Stop()
	ResultChan() <-chan *Event
}

type WatcherEvent

type WatcherEvent struct {
	Runtime
	Action   string
	Name     string
	SelfLink string
	Data     interface{}
}

Jump to

Keyboard shortcuts

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