controller

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIngressNotFound = errors.New("ingress not found")
)

Functions

This section is empty.

Types

type Controller

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

func New

func New(
	options Options,
	ingresshttpClientSet clientsetv1alpha1.Interface,
	logger log.Logger,
) *Controller

func (*Controller) FindIngress

func (c *Controller) FindIngress(matchFn IngressMatcher) (crdv1alpha1.IngressHTTP, error)

func (*Controller) ListIngresses

func (c *Controller) ListIngresses() ([]crdv1alpha1.IngressHTTP, error)

func (*Controller) Run

func (c *Controller) Run(ctx context.Context) error

func (*Controller) UpdateIngressStatus

func (c *Controller) UpdateIngressStatus(
	ctx context.Context,
	ingress crdv1alpha1.IngressHTTP,
	healthy bool,
) error

type IngressMatcher

type IngressMatcher = func(*crdv1alpha1.IngressHTTP) bool

type Options

type Options struct {
	Namespace    string
	ResyncPeriod time.Duration
}

Jump to

Keyboard shortcuts

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