app

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigParams

type ConfigParams struct {
	// LocalPort specifies the port to listen for DNS requests
	LocalPort string
	// Interface specifies the name of the interface to be created
	Interface string
	// Interval specifies how often to run iptables rules check
	Interval time.Duration
	// SetupIptables enables iptables setup
	SetupIptables bool
	// Cleanup specifies whether to clean the created interface and iptables
	Cleanup bool
	// Daemon specifies whether to run as daemon
	Daemon bool
	// IPAddress specifies the IP address on which the proxy is listening
	IPAddress string
}

ConfigParams lists the configuration options that can be provided to sidecar proxy

type SidecarApp

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

SidecarApp contains all the config required to run sidecar proxy.

func NewSidecarApp

func NewSidecarApp(params *ConfigParams) (*SidecarApp, error)

NewSidecarApp returns a new instance of SidecarApp by applying the specified config params.

func (*SidecarApp) RunApp

func (c *SidecarApp) RunApp(ctx context.Context)

RunApp invokes the background checks and runs coreDNS as a cache

func (*SidecarApp) TeardownNetworking

func (c *SidecarApp) TeardownNetworking() error

TeardownNetworking removes the network interface added by apiserver-proxy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳