Documentation ¶
Index ¶
- type Cluster
- type Config
- func (n *Config) Create(namespace *types.Namespace, config *types.Config) (*types.Config, error)
- func (n *Config) Get(namespace, name string) (*types.Config, error)
- func (n *Config) List(filter string) (*types.ConfigList, error)
- func (n *Config) Remove(config *types.Config) error
- func (n *Config) Update(config *types.Config) (*types.Config, error)
- func (n *Config) Watch(ch chan types.ConfigEvent, rev *int64) error
- type Deployment
- func (d *Deployment) Cancel(dt *types.Deployment) error
- func (d *Deployment) Create(service *types.Service, version int) (*types.Deployment, error)
- func (d *Deployment) Destroy(dt *types.Deployment) error
- func (d *Deployment) Get(namespace, service, name string) (*types.Deployment, error)
- func (d *Deployment) ListByNamespace(namespace string) (*types.DeploymentList, error)
- func (d *Deployment) ListByService(namespace, service string) (*types.DeploymentList, error)
- func (d *Deployment) Remove(dt *types.Deployment) error
- func (d *Deployment) Runtime() (*types.Runtime, error)
- func (d *Deployment) Update(dt *types.Deployment) error
- func (d *Deployment) Watch(dt chan types.DeploymentEvent, rev *int64) error
- type Discovery
- func (n *Discovery) Get(name string) (*types.Discovery, error)
- func (n *Discovery) List() (*types.DiscoveryList, error)
- func (n *Discovery) Put(discovery *types.Discovery) error
- func (n *Discovery) Remove(discovery *types.Discovery) error
- func (n *Discovery) Set(discovery *types.Discovery) error
- func (n *Discovery) SetOnline(discovery *types.Discovery) error
- func (n *Discovery) Watch(ch chan types.DiscoveryEvent, rev *int64) error
- func (n *Discovery) WatchOnline(ch chan types.DiscoveryStatusEvent) error
- type Endpoint
- func (e *Endpoint) Create(namespace, service string, opts *types.EndpointCreateOptions) (*types.Endpoint, error)
- func (e *Endpoint) Get(namespace, service string) (*types.Endpoint, error)
- func (e *Endpoint) ListByNamespace(namespace string) (*types.EndpointList, error)
- func (e *Endpoint) ManifestAdd(name string, manifest *types.EndpointManifest) error
- func (e *Endpoint) ManifestDel(name string) error
- func (e *Endpoint) ManifestGet(name string) (*types.EndpointManifest, error)
- func (e *Endpoint) ManifestGetName(namespace, service string) string
- func (e *Endpoint) ManifestMap() (*types.EndpointManifestMap, error)
- func (e *Endpoint) ManifestSet(name string, manifest *types.EndpointManifest) error
- func (e *Endpoint) ManifestWatch(ch chan types.EndpointManifestEvent, rev *int64) error
- func (e *Endpoint) Remove(endpoint *types.Endpoint) error
- func (e *Endpoint) SetSpec(endpoint *types.Endpoint, spec *types.EndpointSpec) (*types.Endpoint, error)
- func (e *Endpoint) Update(endpoint *types.Endpoint, opts *types.EndpointUpdateOptions) (*types.Endpoint, error)
- func (e *Endpoint) Watch(ch chan types.EndpointEvent, rev *int64) error
- type Ingress
- func (n *Ingress) Get(name string) (*types.Ingress, error)
- func (n *Ingress) List() (*types.IngressList, error)
- func (n *Ingress) Put(ingress *types.Ingress) error
- func (n *Ingress) Remove(ingress *types.Ingress) error
- func (n *Ingress) Set(ingress *types.Ingress) error
- func (n *Ingress) Watch(ch chan types.IngressEvent, rev *int64) error
- type NM
- type Namespace
- func (n *Namespace) Create(ns *types.Namespace) (*types.Namespace, error)
- func (n *Namespace) Get(name string) (*types.Namespace, error)
- func (n *Namespace) List() (*types.NamespaceList, error)
- func (n *Namespace) Remove(namespace *types.Namespace) error
- func (n *Namespace) Update(namespace *types.Namespace) error
- func (n *Namespace) Watch(ch chan types.NamespaceEvent) error
- type Network
- func (s *Network) Del(net *types.Network) error
- func (s *Network) Get() (*types.Network, error)
- func (s *Network) Put(net *types.Network) (*types.Network, error)
- func (s *Network) Runtime() (*types.Runtime, error)
- func (s *Network) Set(net *types.Network) (*types.Network, error)
- func (s *Network) SubnetDel(name string) error
- func (s *Network) SubnetEqual(snet *types.Subnet, spec types.SubnetSpec) bool
- func (s *Network) SubnetGet(cidr string) (*types.Subnet, error)
- func (s *Network) SubnetList() ([]*types.Subnet, error)
- func (s *Network) SubnetManifestAdd(snet *types.Subnet) error
- func (s *Network) SubnetManifestDel(name string) error
- func (s *Network) SubnetManifestGet(name string) (*types.SubnetManifest, error)
- func (s *Network) SubnetManifestMap() (*types.SubnetManifestMap, error)
- func (s *Network) SubnetManifestSet(m *types.SubnetManifest, snet *types.Subnet) error
- func (s *Network) SubnetManifestWatch(ch chan types.SubnetManifestEvent, rev *int64) error
- func (s *Network) SubnetPut(hostname string, spec types.SubnetSpec) (*types.Subnet, error)
- func (s *Network) SubnetSet(snet *types.Subnet) error
- func (s *Network) SubnetWatch(ch chan types.SubnetEvent, rev *int64) error
- func (s *Network) Watch(ch chan types.NetworkEvent, rev *int64) error
- type Node
- func (n *Node) Get(hostname string) (*types.Node, error)
- func (n *Node) List() (*types.NodeList, error)
- func (n *Node) Put(opts *types.NodeCreateOptions) (*types.Node, error)
- func (n *Node) Remove(node *types.Node) error
- func (n *Node) Set(node *types.Node) error
- func (n *Node) Watch(ch chan types.NodeEvent, rev *int64) error
- type Pod
- func (p *Pod) Create(deployment *types.Deployment) (*types.Pod, error)
- func (p *Pod) Destroy(pod *types.Pod) error
- func (p *Pod) Get(namespace, service, deployment, name string) (*types.Pod, error)
- func (p *Pod) ListByDeployment(namespace, service, deployment string) (*types.PodList, error)
- func (p *Pod) ListByNamespace(namespace string) (*types.PodList, error)
- func (p *Pod) ListByService(namespace, service string) (*types.PodList, error)
- func (p *Pod) ManifestAdd(node, pod string, manifest *types.PodManifest) error
- func (p *Pod) ManifestDel(node, pod string) error
- func (p *Pod) ManifestGet(node, pod string) (*types.PodManifest, error)
- func (p *Pod) ManifestMap(node string) (*types.PodManifestMap, error)
- func (p *Pod) ManifestSet(node, pod string, manifest *types.PodManifest) error
- func (p *Pod) ManifestWatch(node string, ch chan types.PodManifestEvent, rev *int64) error
- func (p *Pod) Remove(pod *types.Pod) error
- func (p *Pod) Runtime() (*types.Runtime, error)
- func (p *Pod) SetNode(pod *types.Pod, node *types.Node) error
- func (p *Pod) Update(pod *types.Pod) error
- func (p *Pod) Watch(ch chan types.PodEvent, rev *int64) error
- type Route
- func (r *Route) Add(namespace *types.Namespace, route *types.Route) (*types.Route, error)
- func (r *Route) Del(route *types.Route) error
- func (r *Route) Get(namespace, name string) (*types.Route, error)
- func (r *Route) List() (*types.RouteList, error)
- func (r *Route) ListByNamespace(namespace string) (*types.RouteList, error)
- func (r *Route) ManifestAdd(ingress, route string, manifest *types.RouteManifest) error
- func (r *Route) ManifestDel(ingress, route string) error
- func (r *Route) ManifestGet(ingress, route string) (*types.RouteManifest, error)
- func (r *Route) ManifestMap(ingress string) (*types.RouteManifestMap, error)
- func (r *Route) ManifestSet(ingress, route string, manifest *types.RouteManifest) error
- func (r *Route) ManifestWatch(ingress string, ch chan types.RouteManifestEvent, rev *int64) error
- func (r *Route) Runtime() (*types.Runtime, error)
- func (r *Route) Set(route *types.Route) (*types.Route, error)
- func (r *Route) Watch(ch chan types.RouteEvent, rev *int64) error
- type Secret
- func (n *Secret) Create(namespace *types.Namespace, secret *types.Secret) (*types.Secret, error)
- func (n *Secret) Get(namespace, name string) (*types.Secret, error)
- func (n *Secret) List(filter string) (*types.SecretList, error)
- func (n *Secret) Remove(secret *types.Secret) error
- func (n *Secret) Update(secret *types.Secret) (*types.Secret, error)
- func (n *Secret) Watch(ch chan types.SecretEvent, rev *int64) error
- type Service
- func (s *Service) Create(namespace *types.Namespace, svc *types.Service) (*types.Service, error)
- func (s *Service) Destroy(service *types.Service) (*types.Service, error)
- func (s *Service) Get(namespace, name string) (*types.Service, error)
- func (s *Service) List(namespace string) (*types.ServiceList, error)
- func (s *Service) Remove(service *types.Service) error
- func (s *Service) Runtime() (*types.Runtime, error)
- func (s *Service) Set(service *types.Service) error
- func (s *Service) Update(service *types.Service) (*types.Service, error)
- func (s *Service) Watch(ch chan types.ServiceEvent, rev *int64) error
- type Volume
- func (v *Volume) Create(namespace *types.Namespace, vol *types.Volume) (*types.Volume, error)
- func (v *Volume) Destroy(volume *types.Volume) error
- func (v *Volume) Get(namespace, name string) (*types.Volume, error)
- func (v *Volume) ListByNamespace(namespace string) (*types.VolumeList, error)
- func (v *Volume) ManifestAdd(node, volume string, manifest *types.VolumeManifest) error
- func (v *Volume) ManifestDel(node, volume string) error
- func (v *Volume) ManifestGet(node, volume string) (*types.VolumeManifest, error)
- func (v *Volume) ManifestMap(node string) (*types.VolumeManifestMap, error)
- func (v *Volume) ManifestSet(node, volume string, manifest *types.VolumeManifest) error
- func (p *Volume) ManifestWatch(node string, ch chan types.VolumeManifestEvent, rev *int64) error
- func (v *Volume) Remove(volume *types.Volume) error
- func (v *Volume) Runtime() (*types.Runtime, error)
- func (v *Volume) Update(volume *types.Volume) error
- func (v *Volume) Watch(ch chan types.VolumeEvent, rev *int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster - distribution model
func NewClusterModel ¶
NewClusterModel - return new cluster model
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
Deployment - distribution model
func NewDeploymentModel ¶
func NewDeploymentModel(ctx context.Context, stg storage.Storage) *Deployment
func (*Deployment) Cancel ¶
func (d *Deployment) Cancel(dt *types.Deployment) error
Cancel deployment
func (*Deployment) Create ¶
func (d *Deployment) Create(service *types.Service, version int) (*types.Deployment, error)
Create new deployment
func (*Deployment) Destroy ¶
func (d *Deployment) Destroy(dt *types.Deployment) error
Destroy deployment
func (*Deployment) Get ¶
func (d *Deployment) Get(namespace, service, name string) (*types.Deployment, error)
Get deployment info by namespace service and deployment name
func (*Deployment) ListByNamespace ¶
func (d *Deployment) ListByNamespace(namespace string) (*types.DeploymentList, error)
ListByService - list of deployments by service
func (*Deployment) ListByService ¶
func (d *Deployment) ListByService(namespace, service string) (*types.DeploymentList, error)
ListByService - list of deployments by service
func (*Deployment) Remove ¶
func (d *Deployment) Remove(dt *types.Deployment) error
Destroy deployment
func (*Deployment) Update ¶
func (d *Deployment) Update(dt *types.Deployment) error
Update deployment
func (*Deployment) Watch ¶
func (d *Deployment) Watch(dt chan types.DeploymentEvent, rev *int64) error
Watch deployment changes
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
func NewDiscoveryModel ¶
func (*Discovery) WatchOnline ¶
func (n *Discovery) WatchOnline(ch chan types.DiscoveryStatusEvent) error
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func (*Endpoint) ListByNamespace ¶
func (e *Endpoint) ListByNamespace(namespace string) (*types.EndpointList, error)
func (*Endpoint) ManifestAdd ¶
func (e *Endpoint) ManifestAdd(name string, manifest *types.EndpointManifest) error
Add particular network manifest
func (*Endpoint) ManifestDel ¶
Del particular network manifest
func (*Endpoint) ManifestGet ¶
func (e *Endpoint) ManifestGet(name string) (*types.EndpointManifest, error)
Get particular network manifest
func (*Endpoint) ManifestGetName ¶
func (*Endpoint) ManifestMap ¶
func (e *Endpoint) ManifestMap() (*types.EndpointManifestMap, error)
Get network subnet manifests map
func (*Endpoint) ManifestSet ¶
func (e *Endpoint) ManifestSet(name string, manifest *types.EndpointManifest) error
Set particular network manifest
func (*Endpoint) ManifestWatch ¶
func (e *Endpoint) ManifestWatch(ch chan types.EndpointManifestEvent, rev *int64) error
watch subnet manifests
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
func NewNamespaceModel ¶
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
func NewNetworkModel ¶
NewNetworkModel returns new network management model
func (*Network) SubnetEqual ¶
Check subnet
func (*Network) SubnetList ¶
Get subnet list
func (*Network) SubnetManifestAdd ¶
Add particular network manifest
func (*Network) SubnetManifestDel ¶
Del particular network manifest
func (*Network) SubnetManifestGet ¶
func (s *Network) SubnetManifestGet(name string) (*types.SubnetManifest, error)
Get particular network manifest
func (*Network) SubnetManifestMap ¶
func (s *Network) SubnetManifestMap() (*types.SubnetManifestMap, error)
Get network subnet manifests map
func (*Network) SubnetManifestSet ¶
Set particular network manifest
func (*Network) SubnetManifestWatch ¶
func (s *Network) SubnetManifestWatch(ch chan types.SubnetManifestEvent, rev *int64) error
watch subnet manifests
func (*Network) SubnetWatch ¶
func (s *Network) SubnetWatch(ch chan types.SubnetEvent, rev *int64) error
Watch network changes
type Pod ¶
type Pod struct {
// contains filtered or unexported fields
}
func (*Pod) ListByDeployment ¶
ListByDeployment returns pod list in selected deployment
func (*Pod) ListByNamespace ¶
ListByNamespace returns pod list in selected namespace
func (*Pod) ListByService ¶
ListByService returns pod list in selected service
func (*Pod) ManifestAdd ¶
func (p *Pod) ManifestAdd(node, pod string, manifest *types.PodManifest) error
func (*Pod) ManifestDel ¶
func (*Pod) ManifestGet ¶
func (p *Pod) ManifestGet(node, pod string) (*types.PodManifest, error)
func (*Pod) ManifestMap ¶
func (p *Pod) ManifestMap(node string) (*types.PodManifestMap, error)
func (*Pod) ManifestSet ¶
func (p *Pod) ManifestSet(node, pod string, manifest *types.PodManifest) error
func (*Pod) ManifestWatch ¶
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func (*Route) ListByNamespace ¶
func (*Route) ManifestAdd ¶
func (r *Route) ManifestAdd(ingress, route string, manifest *types.RouteManifest) error
func (*Route) ManifestDel ¶
func (*Route) ManifestGet ¶
func (r *Route) ManifestGet(ingress, route string) (*types.RouteManifest, error)
func (*Route) ManifestMap ¶
func (r *Route) ManifestMap(ingress string) (*types.RouteManifestMap, error)
func (*Route) ManifestSet ¶
func (r *Route) ManifestSet(ingress, route string, manifest *types.RouteManifest) error
func (*Route) ManifestWatch ¶
type Secret ¶
type Secret struct {
// contains filtered or unexported fields
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewServiceModel ¶
NewServiceModel returns new service management model
func (*Service) List ¶
func (s *Service) List(namespace string) (*types.ServiceList, error)
List method return map of services in selected namespace
type Volume ¶
type Volume struct {
// contains filtered or unexported fields
}
func (*Volume) ListByNamespace ¶
func (v *Volume) ListByNamespace(namespace string) (*types.VolumeList, error)
func (*Volume) ManifestAdd ¶
func (v *Volume) ManifestAdd(node, volume string, manifest *types.VolumeManifest) error
func (*Volume) ManifestDel ¶
func (*Volume) ManifestGet ¶
func (v *Volume) ManifestGet(node, volume string) (*types.VolumeManifest, error)
func (*Volume) ManifestMap ¶
func (v *Volume) ManifestMap(node string) (*types.VolumeManifestMap, error)
func (*Volume) ManifestSet ¶
func (v *Volume) ManifestSet(node, volume string, manifest *types.VolumeManifest) error