Documentation
¶
Index ¶
- func PodObserve(ss *ServiceState, p *types.Pod) error
- type ServiceState
- func (ss *ServiceState) DelDeployment(d *types.Deployment)
- func (ss *ServiceState) DelPod(p *types.Pod)
- func (ss *ServiceState) Observe()
- func (ss *ServiceState) Restore() error
- func (ss *ServiceState) SetDeployment(d *types.Deployment)
- func (ss *ServiceState) SetPod(p *types.Pod)
- func (ss *ServiceState) SetService(s *types.Service)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PodObserve ¶
func PodObserve(ss *ServiceState, p *types.Pod) error
PodObserve function manages pod handlers based on pod state
Types ¶
type ServiceState ¶
type ServiceState struct {
// contains filtered or unexported fields
}
func NewServiceState ¶
func NewServiceState(cs *cluster.ClusterState, s *types.Service) *ServiceState
func (*ServiceState) DelDeployment ¶
func (ss *ServiceState) DelDeployment(d *types.Deployment)
func (*ServiceState) DelPod ¶
func (ss *ServiceState) DelPod(p *types.Pod)
func (*ServiceState) Observe ¶
func (ss *ServiceState) Observe()
func (*ServiceState) Restore ¶
func (ss *ServiceState) Restore() error
func (*ServiceState) SetDeployment ¶
func (ss *ServiceState) SetDeployment(d *types.Deployment)
func (*ServiceState) SetPod ¶
func (ss *ServiceState) SetPod(p *types.Pod)
func (*ServiceState) SetService ¶
func (ss *ServiceState) SetService(s *types.Service)
Source Files
¶
- deployment.go
- endpoint.go
- observer.go
- pod.go
- service.go
Click to show internal directories.
Click to hide internal directories.