event

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package event regroups all the definitions and functions to receive events from a cluster

Code generated by go generate; DO NOT EDIT.

This file was generated by gen_event_cluster.go at 2019-06-17 12:12:05.585980266 +0300 EEST m=+0.001063304

Package event regroups all the definitions and functions to receive events from a cluster

Code generated by go generate; DO NOT EDIT.

This file was generated by gen_event_definition.go at 2019-06-17 12:12:05.353683112 +0300 EEST m=+0.002937813

Package event regroups all the definitions and functions to receive events from a cluster

Code generated by go generate; DO NOT EDIT.

This file was generated by gen_event_namespace.go at 2019-06-17 12:12:05.819183589 +0300 EEST m=+0.001086680

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddClusterRoleBindingEventClient

func AddClusterRoleBindingEventClient(contextName string, client chan ClusterRoleBindingEvent) error

AddClusterRoleBindingEventClient adds a new client that will received events

func AddClusterRoleEventClient

func AddClusterRoleEventClient(contextName string, client chan ClusterRoleEvent) error

AddClusterRoleEventClient adds a new client that will received events

func AddConfigMapEventClient

func AddConfigMapEventClient(contextName string, namespace string, client chan ConfigMapEvent) error

AddConfigMapEventClient adds a new client that will received events

func AddCronJobEventClient

func AddCronJobEventClient(contextName string, namespace string, client chan CronJobEvent) error

AddCronJobEventClient adds a new client that will received events

func AddDaemonSetEventClient

func AddDaemonSetEventClient(contextName string, namespace string, client chan DaemonSetEvent) error

AddDaemonSetEventClient adds a new client that will received events

func AddDeploymentEventClient

func AddDeploymentEventClient(contextName string, namespace string, client chan DeploymentEvent) error

AddDeploymentEventClient adds a new client that will received events

func AddJobEventClient

func AddJobEventClient(contextName string, namespace string, client chan JobEvent) error

AddJobEventClient adds a new client that will received events

func AddNamespaceEventClient

func AddNamespaceEventClient(contextName string, client chan NamespaceEvent) error

AddNamespaceEventClient adds a new client that will received events

func AddNetworkPolicyEventClient

func AddNetworkPolicyEventClient(contextName string, namespace string, client chan NetworkPolicyEvent) error

AddNetworkPolicyEventClient adds a new client that will received events

func AddNodeEventClient

func AddNodeEventClient(contextName string, client chan NodeEvent) error

AddNodeEventClient adds a new client that will received events

func AddNodeMetricsEventClient

func AddNodeMetricsEventClient(contextName string, client chan NodeMetricsEvent) error

AddNodeMetricsEventClient adds a new client that will received events

func AddPersistentVolumeClaimEventClient

func AddPersistentVolumeClaimEventClient(contextName string, namespace string, client chan PersistentVolumeClaimEvent) error

AddPersistentVolumeClaimEventClient adds a new client that will received events

func AddPersistentVolumeEventClient

func AddPersistentVolumeEventClient(contextName string, client chan PersistentVolumeEvent) error

AddPersistentVolumeEventClient adds a new client that will received events

func AddPodEventClient

func AddPodEventClient(contextName string, namespace string, client chan PodEvent) error

AddPodEventClient adds a new client that will received events

func AddPodMetricsEventClient

func AddPodMetricsEventClient(contextName string, namespace string, client chan PodMetricsEvent) error

AddPodMetricsEventClient adds a new client that will received events

func AddReplicaSetEventClient

func AddReplicaSetEventClient(contextName string, namespace string, client chan ReplicaSetEvent) error

AddReplicaSetEventClient adds a new client that will received events

func AddReplicationControllerEventClient

func AddReplicationControllerEventClient(contextName string, namespace string, client chan ReplicationControllerEvent) error

AddReplicationControllerEventClient adds a new client that will received events

func AddRoleBindingEventClient

func AddRoleBindingEventClient(contextName string, namespace string, client chan RoleBindingEvent) error

AddRoleBindingEventClient adds a new client that will received events

func AddRoleEventClient

func AddRoleEventClient(contextName string, namespace string, client chan RoleEvent) error

AddRoleEventClient adds a new client that will received events

func AddSecretEventClient

func AddSecretEventClient(contextName string, namespace string, client chan SecretEvent) error

AddSecretEventClient adds a new client that will received events

func AddServiceAccountEventClient

func AddServiceAccountEventClient(contextName string, namespace string, client chan ServiceAccountEvent) error

AddServiceAccountEventClient adds a new client that will received events

func AddServiceEventClient

func AddServiceEventClient(contextName string, namespace string, client chan ServiceEvent) error

AddServiceEventClient adds a new client that will received events

func AddStatefulSetEventClient

func AddStatefulSetEventClient(contextName string, namespace string, client chan StatefulSetEvent) error

AddStatefulSetEventClient adds a new client that will received events

func AddStorageClassEventClient

func AddStorageClassEventClient(contextName string, client chan StorageClassEvent) error

AddStorageClassEventClient adds a new client that will received events

func GetClusterRoleBindings

func GetClusterRoleBindings(contextName string) []rbacv1.ClusterRoleBinding

GetClusterRoleBindings returns the list of all ClusterRoleBindings known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetClusterRoles

func GetClusterRoles(contextName string) []rbacv1.ClusterRole

GetClusterRoles returns the list of all ClusterRoles known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetConfigMaps

func GetConfigMaps(contextName string, namespace string) []corev1.ConfigMap

GetConfigMaps returns the list of all ConfigMaps known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetCronJobs

func GetCronJobs(contextName string, namespace string) []batchv1beta1.CronJob

GetCronJobs returns the list of all CronJobs known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetDaemonSets

func GetDaemonSets(contextName string, namespace string) []appsv1.DaemonSet

GetDaemonSets returns the list of all DaemonSets known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetDeployments

func GetDeployments(contextName string, namespace string) []appsv1.Deployment

GetDeployments returns the list of all Deployments known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetJobs

func GetJobs(contextName string, namespace string) []batchv1.Job

GetJobs returns the list of all Jobs known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetNamespaces

func GetNamespaces(contextName string) []corev1.Namespace

GetNamespaces returns the list of all Namespaces known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetNetworkPolicies

func GetNetworkPolicies(contextName string, namespace string) []networkingv1.NetworkPolicy

GetNetworkPolicies returns the list of all NetworkPolicies known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetNodeMetricses

func GetNodeMetricses(contextName string) []metricsv1beta1.NodeMetrics

GetNodeMetricses returns the list of all NodeMetricses known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetNodes

func GetNodes(contextName string) []corev1.Node

GetNodes returns the list of all Nodes known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetPersistentVolumeClaims

func GetPersistentVolumeClaims(contextName string, namespace string) []corev1.PersistentVolumeClaim

GetPersistentVolumeClaims returns the list of all PersistentVolumeClaims known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetPersistentVolumes

func GetPersistentVolumes(contextName string) []corev1.PersistentVolume

GetPersistentVolumes returns the list of all PersistentVolumes known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetPodMetricses

func GetPodMetricses(contextName string, namespace string) []metricsv1beta1.PodMetrics

GetPodMetricses returns the list of all PodMetricses known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetPods

func GetPods(contextName string, namespace string) []corev1.Pod

GetPods returns the list of all Pods known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetReplicaSets

func GetReplicaSets(contextName string, namespace string) []appsv1.ReplicaSet

GetReplicaSets returns the list of all ReplicaSets known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetReplicationControllers

func GetReplicationControllers(contextName string, namespace string) []corev1.ReplicationController

GetReplicationControllers returns the list of all ReplicationControllers known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetRoleBindings

func GetRoleBindings(contextName string, namespace string) []rbacv1.RoleBinding

GetRoleBindings returns the list of all RoleBindings known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetRoles

func GetRoles(contextName string, namespace string) []rbacv1.Role

GetRoles returns the list of all Roles known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetSecrets

func GetSecrets(contextName string, namespace string) []corev1.Secret

GetSecrets returns the list of all Secrets known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetServiceAccounts

func GetServiceAccounts(contextName string, namespace string) []corev1.ServiceAccount

GetServiceAccounts returns the list of all ServiceAccounts known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetServices

func GetServices(contextName string, namespace string) []corev1.Service

GetServices returns the list of all Services known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetStatefulSets

func GetStatefulSets(contextName string, namespace string) []appsv1.StatefulSet

GetStatefulSets returns the list of all StatefulSets known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func GetStorageClasses

func GetStorageClasses(contextName string) []storagev1.StorageClass

GetStorageClasses returns the list of all StorageClasses known by the EventReceiver. The returned list is a copy and could be freely modified bt the caller

func RemoveClusterRoleBindingEventClient

func RemoveClusterRoleBindingEventClient(contextName string, client chan ClusterRoleBindingEvent)

RemoveClusterRoleBindingEventClient removes a client from receiving events

func RemoveClusterRoleEventClient

func RemoveClusterRoleEventClient(contextName string, client chan ClusterRoleEvent)

RemoveClusterRoleEventClient removes a client from receiving events

func RemoveConfigMapEventClient

func RemoveConfigMapEventClient(contextName string, namespace string, client chan ConfigMapEvent)

RemoveConfigMapEventClient removes a client from receiving events

func RemoveCronJobEventClient

func RemoveCronJobEventClient(contextName string, namespace string, client chan CronJobEvent)

RemoveCronJobEventClient removes a client from receiving events

func RemoveDaemonSetEventClient

func RemoveDaemonSetEventClient(contextName string, namespace string, client chan DaemonSetEvent)

RemoveDaemonSetEventClient removes a client from receiving events

func RemoveDeploymentEventClient

func RemoveDeploymentEventClient(contextName string, namespace string, client chan DeploymentEvent)

RemoveDeploymentEventClient removes a client from receiving events

func RemoveJobEventClient

func RemoveJobEventClient(contextName string, namespace string, client chan JobEvent)

RemoveJobEventClient removes a client from receiving events

func RemoveNamespaceEventClient

func RemoveNamespaceEventClient(contextName string, client chan NamespaceEvent)

RemoveNamespaceEventClient removes a client from receiving events

func RemoveNetworkPolicyEventClient

func RemoveNetworkPolicyEventClient(contextName string, namespace string, client chan NetworkPolicyEvent)

RemoveNetworkPolicyEventClient removes a client from receiving events

func RemoveNodeEventClient

func RemoveNodeEventClient(contextName string, client chan NodeEvent)

RemoveNodeEventClient removes a client from receiving events

func RemoveNodeMetricsEventClient

func RemoveNodeMetricsEventClient(contextName string, client chan NodeMetricsEvent)

RemoveNodeMetricsEventClient removes a client from receiving events

func RemovePersistentVolumeClaimEventClient

func RemovePersistentVolumeClaimEventClient(contextName string, namespace string, client chan PersistentVolumeClaimEvent)

RemovePersistentVolumeClaimEventClient removes a client from receiving events

func RemovePersistentVolumeEventClient

func RemovePersistentVolumeEventClient(contextName string, client chan PersistentVolumeEvent)

RemovePersistentVolumeEventClient removes a client from receiving events

func RemovePodEventClient

func RemovePodEventClient(contextName string, namespace string, client chan PodEvent)

RemovePodEventClient removes a client from receiving events

func RemovePodMetricsEventClient

func RemovePodMetricsEventClient(contextName string, namespace string, client chan PodMetricsEvent)

RemovePodMetricsEventClient removes a client from receiving events

func RemoveReplicaSetEventClient

func RemoveReplicaSetEventClient(contextName string, namespace string, client chan ReplicaSetEvent)

RemoveReplicaSetEventClient removes a client from receiving events

func RemoveReplicationControllerEventClient

func RemoveReplicationControllerEventClient(contextName string, namespace string, client chan ReplicationControllerEvent)

RemoveReplicationControllerEventClient removes a client from receiving events

func RemoveRoleBindingEventClient

func RemoveRoleBindingEventClient(contextName string, namespace string, client chan RoleBindingEvent)

RemoveRoleBindingEventClient removes a client from receiving events

func RemoveRoleEventClient

func RemoveRoleEventClient(contextName string, namespace string, client chan RoleEvent)

RemoveRoleEventClient removes a client from receiving events

func RemoveSecretEventClient

func RemoveSecretEventClient(contextName string, namespace string, client chan SecretEvent)

RemoveSecretEventClient removes a client from receiving events

func RemoveServiceAccountEventClient

func RemoveServiceAccountEventClient(contextName string, namespace string, client chan ServiceAccountEvent)

RemoveServiceAccountEventClient removes a client from receiving events

func RemoveServiceEventClient

func RemoveServiceEventClient(contextName string, namespace string, client chan ServiceEvent)

RemoveServiceEventClient removes a client from receiving events

func RemoveStatefulSetEventClient

func RemoveStatefulSetEventClient(contextName string, namespace string, client chan StatefulSetEvent)

RemoveStatefulSetEventClient removes a client from receiving events

func RemoveStorageClassEventClient

func RemoveStorageClassEventClient(contextName string, client chan StorageClassEvent)

RemoveStorageClassEventClient removes a client from receiving events

Types

type ClusterRoleBindingEvent

type ClusterRoleBindingEvent struct {
	EventType          Type
	ClusterRoleBinding rbacv1.ClusterRoleBinding
}

ClusterRoleBindingEvent is the event sent by the receiver to its clients

type ClusterRoleEvent

type ClusterRoleEvent struct {
	EventType   Type
	ClusterRole rbacv1.ClusterRole
}

ClusterRoleEvent is the event sent by the receiver to its clients

type ConfigMapEvent

type ConfigMapEvent struct {
	EventType Type
	ConfigMap corev1.ConfigMap
}

ConfigMapEvent is the event sent by the receiver to its clients

type CronJobEvent

type CronJobEvent struct {
	EventType Type
	CronJob   batchv1beta1.CronJob
}

CronJobEvent is the event sent by the receiver to its clients

type DaemonSetEvent

type DaemonSetEvent struct {
	EventType Type
	DaemonSet appsv1.DaemonSet
}

DaemonSetEvent is the event sent by the receiver to its clients

type DeploymentEvent

type DeploymentEvent struct {
	EventType  Type
	Deployment appsv1.Deployment
}

DeploymentEvent is the event sent by the receiver to its clients

type JobEvent

type JobEvent struct {
	EventType Type
	Job       batchv1.Job
}

JobEvent is the event sent by the receiver to its clients

type NamespaceEvent

type NamespaceEvent struct {
	EventType Type
	Namespace corev1.Namespace
}

NamespaceEvent is the event sent by the receiver to its clients

type NetworkPolicyEvent

type NetworkPolicyEvent struct {
	EventType     Type
	NetworkPolicy networkingv1.NetworkPolicy
}

NetworkPolicyEvent is the event sent by the receiver to its clients

type NodeEvent

type NodeEvent struct {
	EventType Type
	Node      corev1.Node
}

NodeEvent is the event sent by the receiver to its clients

type NodeMetricsEvent

type NodeMetricsEvent struct {
	EventType   Type
	NodeMetrics metricsv1beta1.NodeMetrics
}

NodeMetricsEvent is the event sent by the receiver to its clients

type PersistentVolumeClaimEvent

type PersistentVolumeClaimEvent struct {
	EventType             Type
	PersistentVolumeClaim corev1.PersistentVolumeClaim
}

PersistentVolumeClaimEvent is the event sent by the receiver to its clients

type PersistentVolumeEvent

type PersistentVolumeEvent struct {
	EventType        Type
	PersistentVolume corev1.PersistentVolume
}

PersistentVolumeEvent is the event sent by the receiver to its clients

type PodEvent

type PodEvent struct {
	EventType Type
	Pod       corev1.Pod
}

PodEvent is the event sent by the receiver to its clients

type PodMetricsEvent

type PodMetricsEvent struct {
	EventType  Type
	PodMetrics metricsv1beta1.PodMetrics
}

PodMetricsEvent is the event sent by the receiver to its clients

type ReplicaSetEvent

type ReplicaSetEvent struct {
	EventType  Type
	ReplicaSet appsv1.ReplicaSet
}

ReplicaSetEvent is the event sent by the receiver to its clients

type ReplicationControllerEvent

type ReplicationControllerEvent struct {
	EventType             Type
	ReplicationController corev1.ReplicationController
}

ReplicationControllerEvent is the event sent by the receiver to its clients

type RoleBindingEvent

type RoleBindingEvent struct {
	EventType   Type
	RoleBinding rbacv1.RoleBinding
}

RoleBindingEvent is the event sent by the receiver to its clients

type RoleEvent

type RoleEvent struct {
	EventType Type
	Role      rbacv1.Role
}

RoleEvent is the event sent by the receiver to its clients

type SecretEvent

type SecretEvent struct {
	EventType Type
	Secret    corev1.Secret
}

SecretEvent is the event sent by the receiver to its clients

type ServiceAccountEvent

type ServiceAccountEvent struct {
	EventType      Type
	ServiceAccount corev1.ServiceAccount
}

ServiceAccountEvent is the event sent by the receiver to its clients

type ServiceEvent

type ServiceEvent struct {
	EventType Type
	Service   corev1.Service
}

ServiceEvent is the event sent by the receiver to its clients

type StatefulSetEvent

type StatefulSetEvent struct {
	EventType   Type
	StatefulSet appsv1.StatefulSet
}

StatefulSetEvent is the event sent by the receiver to its clients

type StorageClassEvent

type StorageClassEvent struct {
	EventType    Type
	StorageClass storagev1.StorageClass
}

StorageClassEvent is the event sent by the receiver to its clients

type Type

type Type int

Type is the type of event: Create, Update or Delete

const (
	// Create is used when an object is created
	Create Type = iota
	// Update is used when an object is updated
	Update
	// Delete is used when an object is deleted
	Delete
)

Jump to

Keyboard shortcuts

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