ingress

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 12 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 []*apiv1beta1.Ingress) *Fake

func (*Fake) Get

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

func (*Fake) HasSynced

func (f *Fake) HasSynced() bool

func (*Fake) List

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

func (*Fake) Run

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

func (*Fake) Update

func (f *Fake) Update(ingress *apiv1beta1.Ingress) error

type Interface

type Interface interface {
	// Get fetches the resource identified by id.
	Get(id types.Id) (*apiv1beta1.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() ([]*apiv1beta1.Ingress, error)
	// Update updates the given Ingress resource.
	Update(ingress *apiv1beta1.Ingress) 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