traefik

package
v0.16.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Port       = 80
	PortSecure = 443
)

Variables

View Source
var (
	ErrTraefikDeploymentCreationFailed   = errors.New("TraefikDeploymentCreationFailed", "error creating Traefik deployment")
	ErrTraefikServiceCreationFailed      = errors.New("TraefikServiceCreationFailed", "error creating Traefik service")
	ErrTraefikClientNotInitialized       = errors.New("TraefikClientNotInitialized", "Traefik client not initialized")
	ErrTraefikIPNotFound                 = errors.New("TraefikIPNotFound", "Traefik IP not found")
	ErrTraefikFailedToGetService         = errors.New("TraefikFailedToGetService", "error getting Traefik service")
	ErrTraefikLoadBalancerIPNotAvailable = errors.New("TraefikLoadBalancerIPNotAvailable", "Traefik LoadBalancer IP not available")
	ErrTraefikFailedToGetNodes           = errors.New("TraefikFailedToGetNodes", "error getting Traefik nodes")
	ErrTraefikNoNodesFound               = errors.New("TraefikNoNodesFound", "no Traefik nodes found")
	ErrTraefikTimeoutWaitingForReady     = errors.New("TraefikTimeoutWaitingForReady", "Traefik timeout waiting for ready")
	ErrTraefikFailedToCreateService      = errors.New("TraefikFailedToCreateService", "error creating Traefik service")
	ErrTraefikRoleCreationFailed         = errors.New("TraefikRoleCreationFailed", "error creating Traefik role")
	ErrTraefikRoleBindingCreationFailed  = errors.New("TraefikRoleBindingCreationFailed", "error creating Traefik role binding")
	ErrFailedToCreateServiceAccount      = errors.New("FailedToCreateServiceAccount", "error creating service account")
	ErrTraefikMiddlewareCreationFailed   = errors.New("TraefikMiddlewareCreationFailed", "error creating Traefik middleware")
	ErrTraefikIngressRouteCreationFailed = errors.New("TraefikIngressRouteCreationFailed", "error creating Traefik ingress route")
	ErrGeneratingRandomK8sName           = errors.New("GeneratingRandomK8sName", "error generating random K8s name")
	ErrTraefikFailedToParseQuantity      = errors.New("TraefikFailedToParseQuantity", "error parsing resource quantity")
)

Functions

This section is empty.

Types

type Error

type Error = errors.Error

type Traefik

type Traefik struct {
	K8sClient k8s.KubeManager
	Logger    *logrus.Logger
	// contains filtered or unexported fields
}

func (*Traefik) AddHost

func (t *Traefik) AddHost(ctx context.Context, serviceName, prefix string, portTCP int) error

func (*Traefik) Deploy

func (t *Traefik) Deploy(ctx context.Context) error

func (*Traefik) Endpoint

func (t *Traefik) Endpoint(ctx context.Context) (string, error)

func (*Traefik) IP

func (t *Traefik) IP(ctx context.Context) (string, error)

func (*Traefik) IsTraefikAPIAvailable

func (t *Traefik) IsTraefikAPIAvailable(ctx context.Context) bool

IsTraefikAPIAvailable checks if the Traefik API is available in the cluster.

func (*Traefik) URL

func (t *Traefik) URL(ctx context.Context, prefix string) (string, error)

Jump to

Keyboard shortcuts

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