ingress

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: 18 Imported by: 0

Documentation

Overview

Package ingress exposes the interface the controller needs to operate on Ingress resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

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

func NewFake

func NewFake(ingresses []*v1.Ingress) *Fake

func (*Fake) Get

func (f *Fake) Get(id types.Id) (*v1.Ingress, error)

func (*Fake) HasSynced

func (f *Fake) HasSynced() bool

func (*Fake) List

func (f *Fake) List() ([]*v1.Ingress, error)

func (*Fake) Patch added in v1.2.3

func (f *Fake) Patch(ctx context.Context, id types.Id, diff []byte) error

func (*Fake) Run

func (f *Fake) Run(ctx context.Context, queue workqueue.RateLimitingInterface)

type Interface

type Interface interface {
	// Get fetches the resource identified by id.
	Get(id typesutils.Id) (*v1.Ingress, error)
	// HasSynced is true after first batch of Ingress resources
	// defined in the cluster has been synchronized with
	// the local storage.
	HasSynced() bool
	// List returns all Ingress resources.
	List() ([]*v1.Ingress, error)
	// Patch patches `patchBytes` changes to the ingress resource with the given id.
	Patch(ctx context.Context, id typesutils.Id, patchBytes []byte) error
	// Run initializes the object exposing the Ingress API.
	Run(ctx context.Context, queue workqueue.RateLimitingInterface)
}

Interface defines the interface the controller needs to operate on Ingress resources.

func New

func New(clientset *kubernetes.Clientset) Interface

Jump to

Keyboard shortcuts

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