ingresscontroller

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package ingresscontroller implements a K8s ingress controller.

Index

Constants

View Source
const (
	// Category is the name of ingress controller
	Category = supervisor.CategoryBusinessController
	// Kind is the kind of ingress controller
	Kind = "IngressController"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IngressController

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

IngressController implements a K8s ingress controller

func (*IngressController) Category

Category returns the category of IngressController.

func (*IngressController) Close

func (ic *IngressController) Close()

Close closes IngressController.

func (*IngressController) DefaultSpec

func (ic *IngressController) DefaultSpec() interface{}

DefaultSpec returns the default spec of IngressController.

func (*IngressController) Inherit

func (ic *IngressController) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object)

Inherit inherits previous generation of IngressController.

func (*IngressController) Init

func (ic *IngressController) Init(superSpec *supervisor.Spec)

Init initializes IngressController.

func (*IngressController) Kind

func (ic *IngressController) Kind() string

Kind returns the kind of IngressController.

func (*IngressController) Status

func (ic *IngressController) Status() *supervisor.Status

Status returns the status of IngressController.

type Spec

type Spec struct {
	HTTPServer   *httpserver.Spec `json:"httpServer" jsonschema:"required"`
	KubeConfig   string           `json:"kubeConfig,omitempty"`
	MasterURL    string           `json:"masterURL,omitempty"`
	Namespaces   []string         `json:"namespaces,omitempty"`
	IngressClass string           `json:"ingressClass,omitempty"`
}

Spec is the ingress controller spec

Jump to

Keyboard shortcuts

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