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
Click to show internal directories.
Click to hide internal directories.