gatewaycontroller

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: 40 Imported by: 0

Documentation

Overview

Package gateway implements k8s gateway API.

Index

Constants

View Source
const (
	// Category is the name of GatewayController
	Category = supervisor.CategoryBusinessController

	// Kind is the kind of GatewayController
	Kind = "GatewayController"
)

Variables

View Source
var FilterSpecGVR = schema.GroupVersionResource{
	Group:    "easegress.megaease.com",
	Version:  "v1",
	Resource: "filterspecs",
}

Functions

This section is empty.

Types

type FilterSpecFromCR added in v2.6.3

type FilterSpecFromCR struct {
	Name string
	Kind string
	Spec string
}

FilterSpecFromCR is filter spec from kubernetes custom resource.

type GatewayController

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

GatewayController implements a k8s gateway API controller

func (*GatewayController) Category

Category returns the category of GatewayController.

func (*GatewayController) Close

func (gc *GatewayController) Close()

func (*GatewayController) DefaultSpec

func (gc *GatewayController) DefaultSpec() interface{}

DefaultSpec returns the default spec of GatewayController.

func (*GatewayController) Inherit

func (gc *GatewayController) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object)

Inherit inherits previous generation of GatewayController.

func (*GatewayController) Init

func (gc *GatewayController) Init(superSpec *supervisor.Spec)

Init initializes GatewayController.

func (*GatewayController) Kind

func (gc *GatewayController) Kind() string

Kind returns the kind of GatewayController.

func (*GatewayController) Status

func (gc *GatewayController) Status() *supervisor.Status

type Spec

type Spec struct {
	KubeConfig string   `json:"kubeConfig,omitempty"`
	MasterURL  string   `json:"masterURL,omitempty"`
	Namespaces []string `json:"namespaces,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