Documentation ¶
Index ¶
- Constants
- Variables
- type Error
- type Traefik
- func (t *Traefik) AddHost(ctx context.Context, serviceName, prefix string, portTCP int) error
- func (t *Traefik) Deploy(ctx context.Context) error
- func (t *Traefik) Endpoint(ctx context.Context) (string, error)
- func (t *Traefik) IP(ctx context.Context) (string, error)
- func (t *Traefik) IsTraefikAPIAvailable(ctx context.Context) bool
- func (t *Traefik) URL(ctx context.Context, prefix string) (string, error)
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 Traefik ¶
type Traefik struct { K8sClient k8s.KubeManager Logger *logrus.Logger // contains filtered or unexported fields }
func (*Traefik) IsTraefikAPIAvailable ¶
IsTraefikAPIAvailable checks if the Traefik API is available in the cluster.
Click to show internal directories.
Click to hide internal directories.