Documentation ¶
Index ¶
- Constants
- func NewDeploymentEventHandler(informers []types.StatusInformer, resourceStateCh chan<- types.ResourceState) *deploymentEventHandler
- func NewIngressEventHandler(clientset kubernetes.Interface, informers []types.StatusInformer, ...) *ingressEventHandler
- func NewPersistentVolumeClaimEventHandler(informers []types.StatusInformer, resourceStateCh chan<- types.ResourceState) *persistentVolumeClaimEventHandler
- func NewServiceEventHandler(clientset kubernetes.Interface, informers []types.StatusInformer, ...) *serviceEventHandler
- func NewStatefulSetEventHandler(informers []types.StatusInformer, resourceStateCh chan<- types.ResourceState) *statefulSetEventHandler
- type AppMonitor
- type EventHandler
- type Monitor
Constants ¶
View Source
const (
DeploymentResourceKind = "deployment"
)
View Source
const (
IngressResourceKind = "ingress"
)
View Source
const (
PersistentVolumeClaimResourceKind = "persistentvolumeclaim"
)
View Source
const (
ServiceResourceKind = "service"
)
View Source
const (
StatefulSetResourceKind = "statefulset"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeploymentEventHandler ¶
func NewDeploymentEventHandler(informers []types.StatusInformer, resourceStateCh chan<- types.ResourceState) *deploymentEventHandler
func NewIngressEventHandler ¶
func NewIngressEventHandler(clientset kubernetes.Interface, informers []types.StatusInformer, resourceStateCh chan<- types.ResourceState) *ingressEventHandler
func NewPersistentVolumeClaimEventHandler ¶
func NewPersistentVolumeClaimEventHandler(informers []types.StatusInformer, resourceStateCh chan<- types.ResourceState) *persistentVolumeClaimEventHandler
func NewServiceEventHandler ¶
func NewServiceEventHandler(clientset kubernetes.Interface, informers []types.StatusInformer, resourceStateCh chan<- types.ResourceState) *serviceEventHandler
func NewStatefulSetEventHandler ¶
func NewStatefulSetEventHandler(informers []types.StatusInformer, resourceStateCh chan<- types.ResourceState) *statefulSetEventHandler
Types ¶
type AppMonitor ¶
type AppMonitor struct {
// contains filtered or unexported fields
}
func NewAppMonitor ¶
func NewAppMonitor(clientset kubernetes.Interface, targetNamespace, appID string, sequence int64) *AppMonitor
func (*AppMonitor) AppStatusChan ¶
func (m *AppMonitor) AppStatusChan() <-chan types.AppStatus
func (*AppMonitor) Apply ¶
func (m *AppMonitor) Apply(informers []types.StatusInformer)
func (*AppMonitor) Shutdown ¶
func (m *AppMonitor) Shutdown()
type EventHandler ¶
type EventHandler interface { ObjectCreated(obj interface{}) ObjectUpdated(obj interface{}) ObjectDeleted(obj interface{}) }
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func NewMonitor(clientset kubernetes.Interface, targetNamespace string) *Monitor
func (*Monitor) AppStatusChan ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.