ingress

package
v0.15.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	ServiceName     string
	ServicePortName string
}

Backend represents Kubernetes IngressBackend

type Client

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

Client manages communication with the Kubernetes Ingress.

func NewClient

func NewClient(clientset kubernetes.Interface) *Client

NewClient constructs a new Client.

func (*Client) Delete added in v0.4.1

func (c *Client) Delete(ctx context.Context, name, namespace string) (err error)

Delete deletes Ingress

func (*Client) ListDebugNodesHosts added in v0.12.3

func (c *Client) ListDebugNodesHosts(ctx context.Context, namespace string) (nodes []NodeInfo, err error)

ListDebugNodesHosts list Ingresses that are nodes

func (*Client) Set

func (c *Client) Set(ctx context.Context, name, namespace string, o Options) (ing *v1.Ingress, err error)

Set updates Ingress or creates it if it does not exist

type NodeInfo added in v0.12.3

type NodeInfo struct {
	Name string
	Host string
}

NodeInfo

type Options

type Options struct {
	Annotations map[string]string
	Labels      map[string]string
	Spec        Spec
}

Options holds optional parameters for the Client.

type Path

type Path struct {
	Backend  Backend
	Path     string
	PathType string
}

Path represents service's HTTPIngressPath

type Paths

type Paths []Path

Paths represents service's HTTPIngressPaths

type Rule

type Rule struct {
	Host  string
	Paths Paths
}

Rule represents Kubernetes IngressRule

type Rules

type Rules []Rule

Rules represents Kubernetes IngressRules

type Spec

type Spec struct {
	Class string
	TLS   TLSs
	Rules Rules
}

Spec represents Kubernetes IngressSpec

type TLS

type TLS struct {
	Hosts      []string
	SecretName string
}

TLS represents service's IngressTLS

type TLSs

type TLSs []TLS

TLSs represents service's IngressTLSs

Jump to

Keyboard shortcuts

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