event

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package event provides operations for manipulating Event objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake added in v1.0.0

type Fake struct {
	BackendErrorCnt        int
	CreateCnt              int
	DeleteCnt              int
	MissingCertificateCnt  int
	TooManyCertificatesCnt int
}

func (*Fake) BackendError added in v1.0.0

func (f *Fake) BackendError(mcrt v1.ManagedCertificate, err error)

func (*Fake) Create added in v1.0.0

func (f *Fake) Create(mcrt v1.ManagedCertificate, sslCertificateName string)

func (*Fake) Delete added in v1.0.0

func (f *Fake) Delete(mcrt v1.ManagedCertificate, sslCertificateName string)

func (*Fake) MissingCertificate added in v1.0.0

func (f *Fake) MissingCertificate(ingress netv1.Ingress, mcrtName string)

func (*Fake) TooManyCertificates added in v1.0.0

func (f *Fake) TooManyCertificates(mcrt v1.ManagedCertificate, err error)

type Interface added in v1.0.0

type Interface interface {
	// BackendError creates an event when a transient error occurs when calling GCP API.
	BackendError(mcrt v1.ManagedCertificate, err error)
	// Create creates an event when an SslCertificate associated with ManagedCertificate is created.
	Create(mcrt v1.ManagedCertificate, sslCertificateName string)
	// Delete creates an event when an SslCertificate associated with ManagedCertificate is deleted.
	Delete(mcrt v1.ManagedCertificate, sslCertificateName string)
	// MissingCertificate creates an event when a ManagedCertificate attached to Ingress
	// is not found.
	MissingCertificate(ingress netv1.Ingress, mcrtName string)
	// TooManyCertificates creates an event when quota for maximum
	// number of SslCertificates per GCP project is exceeded.
	TooManyCertificates(mcrt v1.ManagedCertificate, err error)
}

Interface exposes operations for manipulating Event resources.

func New

func New(client kubernetes.Interface) (Interface, error)

New creates an event recorder to send custom events to Kubernetes.

Jump to

Keyboard shortcuts

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