state

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigState

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

func (*ConfigState) AddConfig

func (s *ConfigState) AddConfig(name string, config *types.ConfigManifest)

func (*ConfigState) DelConfig

func (s *ConfigState) DelConfig(name string)

func (*ConfigState) GetConfig

func (s *ConfigState) GetConfig(name string) *types.ConfigManifest

func (*ConfigState) GetConfigs

func (s *ConfigState) GetConfigs() map[string]*types.ConfigManifest

func (*ConfigState) SetConfig

func (s *ConfigState) SetConfig(name string, config *types.ConfigManifest)

func (*ConfigState) SetConfigs

func (s *ConfigState) SetConfigs(configs map[string]*types.ConfigManifest)

type EndpointState

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

func (*EndpointState) AddEndpoint

func (es *EndpointState) AddEndpoint(key string, endpoint *types.EndpointState)

func (*EndpointState) DelEndpoint

func (es *EndpointState) DelEndpoint(key string)

func (*EndpointState) GetEndpoint

func (es *EndpointState) GetEndpoint(key string) *types.EndpointState

func (*EndpointState) GetEndpoints

func (es *EndpointState) GetEndpoints() map[string]*types.EndpointState

func (*EndpointState) GetHash

func (es *EndpointState) GetHash() string

func (*EndpointState) SetEndpoint

func (es *EndpointState) SetEndpoint(key string, endpoint *types.EndpointState)

func (*EndpointState) SetEndpoints

func (es *EndpointState) SetEndpoints(endpoints map[string]*types.EndpointState)

func (*EndpointState) SetHash

func (es *EndpointState) SetHash(hash string)

type ImageState

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

func (*ImageState) AddImage

func (s *ImageState) AddImage(tag string, image *types.Image)

func (*ImageState) DelImage

func (s *ImageState) DelImage(link string)

func (*ImageState) GetImage

func (s *ImageState) GetImage(tag string) *types.Image

func (*ImageState) GetImages

func (s *ImageState) GetImages() map[string]*types.Image

func (*ImageState) SetImage

func (s *ImageState) SetImage(tag string, image *types.Image)

func (*ImageState) SetImages

func (s *ImageState) SetImages(images map[string]*types.Image)

type NetworkState

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

func (*NetworkState) AddSubnet

func (n *NetworkState) AddSubnet(cidr string, sn *types.NetworkState)

func (*NetworkState) DelSubnet

func (n *NetworkState) DelSubnet(cidr string)

func (*NetworkState) GetSubnet

func (n *NetworkState) GetSubnet(cidr string) *types.NetworkState

func (*NetworkState) GetSubnets

func (n *NetworkState) GetSubnets() map[string]types.NetworkState

func (*NetworkState) SetSubnet

func (n *NetworkState) SetSubnet(cidr string, sn *types.NetworkState)

type NodeState

type NodeState struct {
	Info   types.NodeInfo
	Status types.NodeStatus
}

type PodState

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

func (*PodState) AddContainer

func (s *PodState) AddContainer(c *types.PodContainer)

func (*PodState) AddPod

func (s *PodState) AddPod(key string, pod *types.PodStatus)

func (*PodState) DelContainer

func (s *PodState) DelContainer(c *types.PodContainer)

func (*PodState) DelPod

func (s *PodState) DelPod(key string)

func (*PodState) GetContainer

func (s *PodState) GetContainer(id string) *types.PodContainer

func (*PodState) GetContainersCount

func (s *PodState) GetContainersCount() int

func (*PodState) GetPod

func (s *PodState) GetPod(key string) *types.PodStatus

func (*PodState) GetPods

func (s *PodState) GetPods() map[string]*types.PodStatus

func (*PodState) GetPodsCount

func (s *PodState) GetPodsCount() int

func (*PodState) IsLocal

func (s *PodState) IsLocal(key string) bool

func (*PodState) SetContainer

func (s *PodState) SetContainer(c *types.PodContainer)

func (*PodState) SetLocal

func (s *PodState) SetLocal(key string)

func (*PodState) SetPod

func (s *PodState) SetPod(key string, pod *types.PodStatus)

func (*PodState) SetPods

func (s *PodState) SetPods(pods map[string]*types.PodStatus)

func (*PodState) Watch

func (s *PodState) Watch(watcher chan string, done chan bool)

type PodStateStats

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

type SecretsState

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

func (*SecretsState) AddSecret

func (s *SecretsState) AddSecret(name string, secret *types.Secret)

func (*SecretsState) DelSecret

func (s *SecretsState) DelSecret(name string)

func (*SecretsState) GetSecret

func (s *SecretsState) GetSecret(name string) *types.Secret

func (*SecretsState) GetSecrets

func (s *SecretsState) GetSecrets() map[string]types.Secret

func (*SecretsState) SetSecret

func (s *SecretsState) SetSecret(name string, secret *types.Secret)

func (*SecretsState) SetSecrets

func (s *SecretsState) SetSecrets(secrets map[string]*types.Secret)

type State

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

func New

func New() *State

func (*State) Configs

func (s *State) Configs() *ConfigState

func (*State) Endpoints

func (s *State) Endpoints() *EndpointState

func (*State) Images

func (s *State) Images() *ImageState

func (*State) Networks

func (s *State) Networks() *NetworkState

func (*State) Node

func (s *State) Node() *NodeState

func (*State) Pods

func (s *State) Pods() *PodState

func (*State) Secrets

func (s *State) Secrets() *SecretsState

func (*State) Tasks

func (s *State) Tasks() *TaskState

func (*State) Volumes

func (s *State) Volumes() *VolumesState

type TaskState

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

func (*TaskState) AddTask

func (s *TaskState) AddTask(key string, task *types.NodeTask)

func (*TaskState) DelTask

func (s *TaskState) DelTask(pod *types.Pod)

func (*TaskState) GetTask

func (s *TaskState) GetTask(key string) *types.NodeTask

type VolumesState

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

func (*VolumesState) AddClaim

func (s *VolumesState) AddClaim(key string, vc *types.VolumeClaim)

func (*VolumesState) AddVolume

func (s *VolumesState) AddVolume(key string, v *types.VolumeStatus)

func (*VolumesState) DelClaim

func (s *VolumesState) DelClaim(key string)

func (*VolumesState) DelLocal

func (s *VolumesState) DelLocal(key string)

func (*VolumesState) DelVolume

func (s *VolumesState) DelVolume(key string)

func (*VolumesState) GetClaim

func (s *VolumesState) GetClaim(key string) *types.VolumeClaim

func (*VolumesState) GetVolume

func (s *VolumesState) GetVolume(key string) *types.VolumeStatus

func (*VolumesState) GetVolumes

func (s *VolumesState) GetVolumes() map[string]types.VolumeStatus

func (*VolumesState) IsLocal

func (s *VolumesState) IsLocal(key string) bool

func (*VolumesState) SetClaim

func (s *VolumesState) SetClaim(key string, vc *types.VolumeClaim)

func (*VolumesState) SetLocal

func (s *VolumesState) SetLocal(key string)

func (*VolumesState) SetVolume

func (s *VolumesState) SetVolume(key string, v *types.VolumeStatus)

func (*VolumesState) SetVolumes

func (s *VolumesState) SetVolumes(key string, volumes []*types.VolumeStatus)

func (*VolumesState) Watch

func (s *VolumesState) Watch(watcher chan string, done chan bool)

Jump to

Keyboard shortcuts

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