redirect

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventHandler

func NewEventHandler(impl Redirect) cache.ResourceEventHandlerFuncs

NewEventHandler wraps arount a redirect interfaces allowing it to be consumed by a client-go informer

Types

type IptablesRedirect

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

func NewIptablesRedirect

func NewIptablesRedirect(envoyPort int) *IptablesRedirect

func (*IptablesRedirect) AddIP

func (ir *IptablesRedirect) AddIP(comment string, ip net.IP) error

func (*IptablesRedirect) Cleanup

func (ir *IptablesRedirect) Cleanup() error

func (*IptablesRedirect) Prereqs

func (ir *IptablesRedirect) Prereqs() error

func (*IptablesRedirect) RemoveIP

func (ir *IptablesRedirect) RemoveIP(comment string, ip net.IP) error

type Redirect

type Redirect interface {
	Prereqs() error
	AddIP(comment string, ip net.IP) error
	RemoveIP(comment string, ip net.IP) error
	Cleanup() error
}

Jump to

Keyboard shortcuts

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