service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map interface {
	Load(service Service) (Service, bool)
	Store(svc Service)
	LoadOrStore(svc Service) (actual Service, loaded bool)
	LoadAndDelete(svc Service) (Service, bool)
	Delete(svc Service)
	Range(func(svc Service) (shouldContinue bool))
}

func NewMap

func NewMap() Map

type Port

type Port struct {
	Name     string
	Proto    corev1.Protocol
	NodePort int32
	Port     int32
}

func (Port) String

func (p Port) String() string

type Service

type Service struct {
	Key         client.ObjectKey
	Ports       []Port
	NodeIPs     []string
	RequestedIP string
	IP          string
	Private     bool
	Src         corev1.Service
}

func (*Service) AddNodeIPs

func (s *Service) AddNodeIPs(ip ...string)

func (Service) Equals

func (s Service) Equals(o Service) bool

func (Service) String

func (s Service) String() string

Jump to

Keyboard shortcuts

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