model

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 3 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(svc v1.Service) ExternalService

type SupplantPortConfig

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

type SupplantService

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

func MapSupplantService

func MapSupplantService(svc v1.Service) SupplantService

Jump to

Keyboard shortcuts

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