Documentation
¶
Overview ¶
Package cli implements the functionality for running proxydhcp as a CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFlags ¶ added in v0.3.0
RegisterFlags registers CLI flags for the proxydhcp comand.
Types ¶
type Config ¶ added in v0.3.0
type Config struct {
LogLevel string `vname:"-loglevel" validate:"oneof=debug info"`
TFTPAddr string `vname:"-remote-tftp" validate:"required,hostname_port"`
HTTPAddr string `vname:"-remote-http" validate:"required,hostname_port"`
IPXEAddr string `vname:"-remote-ipxe" validate:"required,url"`
IPXEScript string `vname:"-ipxe-script" validate:"required"`
ProxyAddr string `vname:"-proxy-addr" validate:"required,ip"`
CustomUserClass string
Log logr.Logger
}
Config is the configuration for the proxydhcp command.
type Option ¶
type Option func(*bin)
Option for setting optional Client values.
func WithFlagSet ¶
WithFlagSet adds a flag set to the command.
func WithOptions ¶
WithOptions adds command options to the command.
func WithShortUsage ¶
WithShortUsage sets the short usage of the command.
Click to show internal directories.
Click to hide internal directories.