Documentation ¶
Index ¶
- Constants
- func NewMainMenu() list.Model
- func Run()
- type Action
- type ActionResult
- type BannerModel
- type BannerState
- type DhcpConfig
- type DhcpOptions
- type DhcpdViewModel
- type HelpModel
- type Hostname
- type IpAddress
- type Lease
- type LeaseTime
- type MacAddress
- type NetMask
- type ServiceStatus
- type StaticLeases
- type SubnetDeclaration
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func NewMainMenu ¶
Types ¶
type Action ¶
type Action int
The type of action to invoke on the systemd dhcpd service
func (*Action) Result ¶
func (a *Action) Result(err error) ActionResult
Creates a result from the action send to the service
type ActionResult ¶
type ActionResult struct {
// contains filtered or unexported fields
}
The result of an action invoked on the systemd dhcp service
type BannerModel ¶
type BannerModel struct {
// contains filtered or unexported fields
}
func NewBanner ¶
func NewBanner(message string, state BannerState, width int) BannerModel
func (BannerModel) Init ¶
func (m BannerModel) Init() tea.Cmd
func (BannerModel) View ¶
func (m BannerModel) View() string
type BannerState ¶
type BannerState int
const ( BannerNormalState BannerState = iota BannerErrorState BannerState = 1 )
type DhcpConfig ¶
type DhcpConfig struct {
// contains filtered or unexported fields
}
type DhcpOptions ¶
type DhcpOptions struct { }
type DhcpdViewModel ¶
type DhcpdViewModel struct {
// contains filtered or unexported fields
}
func InitialModel ¶
func InitialModel() *DhcpdViewModel
type HelpModel ¶
type HelpModel struct {
// contains filtered or unexported fields
}
func NewHelpModel ¶
func NewHelpModel() HelpModel
type Lease ¶
type Lease struct { MacAddress Hostname IpAddress }
Represents a lease on the dhcp server.
type ServiceStatus ¶
type ServiceStatus struct {
// contains filtered or unexported fields
}
func (*ServiceStatus) View ¶
func (s *ServiceStatus) View() string
type StaticLeases ¶
type StaticLeases []Lease
Represents a collection of static leases used by the server.
type SubnetDeclaration ¶
type SubnetDeclaration struct { Subnet IpAddress Netmask NetMask Start IpAddress End IpAddress Gateway IpAddress OptionDomainName string OptionDnsServers string OptionBroadcastAddress string DefaultLeaseTime LeaseTime MaxLeaseTime LeaseTime }
Reresents a subnet declaration for an internal DHCP server LAN
Click to show internal directories.
Click to hide internal directories.