manager

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const GatewayPortSeparate = "-"
View Source
const GroupSparate = "."

Variables

This section is empty.

Functions

func GenerateDestinationRule

func GenerateDestinationRule(name, namespace string) (dr *istioapi.DestinationRule)

GenerateDestinationRule generate DestinationRule

func GenerateGateway

func GenerateGateway(name, namespace string, gatewayProtocols []string, gatewayPorts []uint32) (gw *istioapi.Gateway)

func GenerateVirtualService

func GenerateVirtualService(name, namespace string, gatewayProtocols []string, svcPorts []uint32) (vs *istioapi.VirtualService)

func ValidateGatewayPort added in v0.1.1

func ValidateGatewayPort(p uint32) bool

func ValidateServicePort added in v0.1.1

func ValidateServicePort(p uint32) bool

Types

type AutoGwManager

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

Manager is gateway manager

func NewAutoGwManager

func NewAutoGwManager(c *config.EdgeAutoGwConfig, ifm *informers.Manager) *AutoGwManager

type LabelAnnotation added in v0.1.1

type LabelAnnotation struct {
	ServicePort     []uint32
	ServiceProtocol []string
	GatewayPort     []uint32
	GateWayProtocol []string
}

type Labels added in v0.1.1

type Labels map[string]string

Jump to

Keyboard shortcuts

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