Documentation ¶
Index ¶
- Constants
- func CalculateIngressState(clientset kubernetes.Interface, r *networkingv1.Ingress) types.State
- func CalculatePersistentVolumeClaimState(r *corev1.PersistentVolumeClaim) types.State
- func CalculateServiceState(clientset kubernetes.Interface, r *corev1.Service) types.State
- func GenerateStatusInformersForManifest(manifest string) []types.StatusInformerString
- 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
- type AppMonitor
- type EventHandler
- type Monitor
- type Operator
Constants ¶
View Source
const ( DaemonSetResourceKind = "daemonset" DaemonSetPodVersionLabel = "controller-revision-hash" DaemonSetOwnerKind = "DaemonSet" )
View Source
const ( StatefulSetResourceKind = "statefulset" StatefulSetPodVersionLabel = "controller-revision-hash" StatefulSetOwnerKind = "StatefulSet" )
View Source
const (
DeploymentResourceKind = "deployment"
)
View Source
const (
IngressResourceKind = "ingress"
)
View Source
const (
PersistentVolumeClaimResourceKind = "persistentvolumeclaim"
)
View Source
const (
ServiceResourceKind = "service"
)
Variables ¶
This section is empty.
Functions ¶
func CalculateIngressState ¶
func CalculateIngressState(clientset kubernetes.Interface, r *networkingv1.Ingress) types.State
func CalculatePersistentVolumeClaimState ¶
func CalculatePersistentVolumeClaimState(r *corev1.PersistentVolumeClaim) types.State
func CalculateServiceState ¶
func GenerateStatusInformersForManifest ¶
func GenerateStatusInformersForManifest(manifest string) []types.StatusInformerString
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
Types ¶
type AppMonitor ¶
type AppMonitor struct {
// contains filtered or unexported fields
}
func NewAppMonitor ¶
func NewAppMonitor(clientset kubernetes.Interface, targetNamespace, appSlug 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 ¶
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
func InitOperator ¶
func InitOperator(clientset kubernetes.Interface, targetNamespace string) *Operator
NewOperator creates and initializes a new Operator.
func MustGetOperator ¶
func MustGetOperator() *Operator
func (*Operator) ApplyAppInformers ¶
func (o *Operator) ApplyAppInformers(args types.AppInformersArgs)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.