event

package
v0.0.0-...-80bedfa Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesRecorder

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

A KubernetesRecorder records events to Kubernetes.

func NewKubernetesRecorder

func NewKubernetesRecorder(e record.EventRecorder, i kubernetes.IngressStore) *KubernetesRecorder

NewKubernetesRecorder returns a Recorder that records events to Kubernetes.

func (*KubernetesRecorder) NewDelete

func (r *KubernetesRecorder) NewDelete(namespace, ingressName, secretName string)

NewDelete records the deletion of a certificate pair as an event on the supplied ingress.

func (*KubernetesRecorder) NewInvalidSecret

func (r *KubernetesRecorder) NewInvalidSecret(namespace, ingressName, secretName string)

NewInvalidSecret records an invalid TLS secret as an event on the supplied ingress.

func (*KubernetesRecorder) NewWrite

func (r *KubernetesRecorder) NewWrite(namespace, ingressName, secretName string)

NewWrite records the writing of a certificate pair as an event on the supplied ingress.

type NopRecorder

type NopRecorder struct{}

A NopRecorder does nothing.

func (*NopRecorder) NewDelete

func (r *NopRecorder) NewDelete(namespace, ingressName, secretName string)

NewDelete does nothing.

func (*NopRecorder) NewInvalidSecret

func (r *NopRecorder) NewInvalidSecret(namespace, ingressName, secretName string)

NewInvalidSecret does nothing.

func (*NopRecorder) NewWrite

func (r *NopRecorder) NewWrite(namespace, ingressName, secretName string)

NewWrite does nothing.

type Recorder

type Recorder interface {
	// NewWrite records the writing of a certificate pair.
	NewWrite(namespace, ingressName, secretName string)

	// NewDelete records the deletion of a certificate pair.
	NewDelete(namespace, ingressName, secretName string)

	// NewInvalidSecret records an invalid TLS secret.
	NewInvalidSecret(namespace, ingressName, secretName string)
}

A Recorder records events.

Jump to

Keyboard shortcuts

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