model

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Supplant []SupplantService
	External []ExternalService
}

type ExternalPortConfig

type ExternalPortConfig struct {
	Name       string `yaml:"name,omitempty"`
	Protocol   v1.Protocol
	TargetPort int32
	LocalPort  int32
}

type ExternalService

type ExternalService struct {
	Name      string
	Namespace string
	Enabled   bool
	Ports     []ExternalPortConfig
}

func MapExternalService

func MapExternalService(pl *PortLookup, svc v1.Service) ExternalService

type PortLookup added in v0.2.0

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

func NewPortLookup added in v0.2.0

func NewPortLookup(cs *kubernetes.Clientset) *PortLookup

func (*PortLookup) LookupPort added in v0.2.2

func (pl *PortLookup) LookupPort(svc v1.Service, port intstr.IntOrString) int32

type SupplantPortConfig

type SupplantPortConfig struct {
	Name      string `yaml:"name,omitempty"`
	Protocol  v1.Protocol
	Port      int32
	LocalPort int32
}

type SupplantService

type SupplantService struct {
	Name      string
	Namespace string
	Enabled   bool
	Ports     []SupplantPortConfig
}

func MapSupplantService

func MapSupplantService(pl *PortLookup, svc v1.Service) SupplantService

Jump to

Keyboard shortcuts

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