ipcache

package
v0.0.0-...-6aee3ff Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = fmt.Errorf("ip addr not found")

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Name      string
	Namespace string
	Labels    map[string]string
	Ports     []Port
}

type Port

type Port struct {
	Name     string
	Port     uint32
	Protocol string
}

type State

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

func New

func New(client *kubernetes.Clientset, syncInterval time.Duration, bufferSize int) *State

func (*State) GetEndpointByIP

func (s *State) GetEndpointByIP(ip string) (*Endpoint, error)

func (*State) Run

func (s *State) Run()

Jump to

Keyboard shortcuts

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