fwdIp

package
v1.22.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIp

func GetIp(opts ForwardIPOpts) (net.IP, error)

Types

type ForwardConfiguration added in v1.22.3

type ForwardConfiguration struct {
	BaseUnreservedIP      string                  `yaml:"baseUnreservedIP"`
	ServiceConfigurations []*ServiceConfiguration `yaml:"serviceConfigurations"`
}

type ForwardIPOpts added in v1.22.3

type ForwardIPOpts struct {
	ServiceName              string
	PodName                  string
	Context                  string
	ClusterN                 int
	NamespaceN               int
	Namespace                string
	Port                     string
	ForwardConfigurationPath string
	ForwardIPReservations    []string
}

func (ForwardIPOpts) MatchList added in v1.22.3

func (o ForwardIPOpts) MatchList() []string

type Registry

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

Registry is a structure to create and hold all of the IP address assignments

type ServiceConfiguration added in v1.22.3

type ServiceConfiguration struct {
	Name string `yaml:"name"`
	IP   string `yaml:"ip"`
}

func ServiceConfigurationFromReservation added in v1.22.3

func ServiceConfigurationFromReservation(reservation string) *ServiceConfiguration

func (ServiceConfiguration) Matches added in v1.22.3

func (c ServiceConfiguration) Matches(opts ForwardIPOpts) bool

func (ServiceConfiguration) MatchesName added in v1.22.3

func (c ServiceConfiguration) MatchesName(otherCfg *ServiceConfiguration) bool

func (ServiceConfiguration) String added in v1.22.3

func (c ServiceConfiguration) String() string

Jump to

Keyboard shortcuts

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