ingress

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusReady represents status is ready
	StatusReady = "Ready"
	// StatusSynced represents status is synced, this mean the controller has reconciled but not ready
	StatusSynced = "Synced"
)
View Source
const TypeNginx = "nginx"

TypeNginx is a type of route implementation

Variables

This section is empty.

Functions

This section is empty.

Types

type Nginx

type Nginx struct {
	Client client.Client
}

Nginx is nginx ingress implementation

func (*Nginx) CheckStatus added in v0.0.9

func (n *Nginx) CheckStatus(routeTrait *standardv1alpha1.Route) (string, []runtimev1alpha1.Condition)

CheckStatus will check status of the ingress

func (*Nginx) Construct

func (*Nginx) Construct(routeTrait *standardv1alpha1.Route) []*v1beta1.Ingress

Construct will construct ingress from route

type RouteIngress

type RouteIngress interface {
	Construct(routeTrait *standardv1alpha1.Route) []*v1beta1.Ingress
	CheckStatus(routeTrait *standardv1alpha1.Route) (string, []runtimev1alpha1.Condition)
}

RouteIngress is an interface of route ingress implementation

func GetRouteIngress

func GetRouteIngress(provider string, client client.Client) (RouteIngress, error)

GetRouteIngress will get real implementation from type, we could support more in the future.

Jump to

Keyboard shortcuts

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