Documentation ¶
Index ¶
- type DHCPDManager
- func (m *DHCPDManager) Cleanup() error
- func (m *DHCPDManager) Create(_ context.Context, args *api.DHCPD) (*api.DHCPDManagedId, error)
- func (m *DHCPDManager) Delete(_ context.Context, args *api.DHCPDManagedId) (*api.DHCPDManagedId, error)
- func (m *DHCPDManager) Extract() error
- func (m *DHCPDManager) Get(_ context.Context, args *api.DHCPDManagedId) (*api.DHCPDManaged, error)
- func (m *DHCPDManager) List(_ context.Context, args *api.DHCPDManagerListArgs) (*api.DHCPDManagerListReply, error)
- type DHClientManager
- func (m *DHClientManager) Cleanup() error
- func (m *DHClientManager) Create(_ context.Context, args *api.DHClient) (*api.DHClientManagedId, error)
- func (m *DHClientManager) Delete(_ context.Context, args *api.DHClientManagedId) (*api.DHClientManagedId, error)
- func (m *DHClientManager) Extract() error
- func (m *DHClientManager) Get(_ context.Context, args *api.DHClientManagedId) (*api.DHClientManaged, error)
- func (m *DHClientManager) List(_ context.Context, args *api.DHClientManagerListArgs) (*api.DHClientManagerListReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DHCPDManager ¶
type DHCPDManager struct { api.UnimplementedDHCPDManagerServer BinaryDir string StateDir string DHCPDsManaged map[string]*workers.DHCPD }
DHCPDManager manages dhcp servers.
func (*DHCPDManager) Cleanup ¶
func (m *DHCPDManager) Cleanup() error
Cleanup deletes the extracted ISC DHCP server binary.
func (*DHCPDManager) Create ¶
func (m *DHCPDManager) Create(_ context.Context, args *api.DHCPD) (*api.DHCPDManagedId, error)
Create creates a dhcp server.
func (*DHCPDManager) Delete ¶
func (m *DHCPDManager) Delete(_ context.Context, args *api.DHCPDManagedId) (*api.DHCPDManagedId, error)
Delete deletes a dhcp server.
func (*DHCPDManager) Extract ¶
func (m *DHCPDManager) Extract() error
Extract extracts the ISC DHCP server binary.
func (*DHCPDManager) Get ¶
func (m *DHCPDManager) Get(_ context.Context, args *api.DHCPDManagedId) (*api.DHCPDManaged, error)
Get gets one of the managed dhcp servers.
func (*DHCPDManager) List ¶
func (m *DHCPDManager) List(_ context.Context, args *api.DHCPDManagerListArgs) (*api.DHCPDManagerListReply, error)
List lists the managed dhcp servers.
type DHClientManager ¶
type DHClientManager struct { api.UnimplementedDHClientManagerServer BinaryDir string DHClientsManaged map[string]*workers.DHClient }
DHClientManager manages dhcp clients.
func (*DHClientManager) Cleanup ¶
func (m *DHClientManager) Cleanup() error
Cleanup deletes the extracted ISC DHCP client binary.
func (*DHClientManager) Create ¶
func (m *DHClientManager) Create(_ context.Context, args *api.DHClient) (*api.DHClientManagedId, error)
Create creates a dhcp client.
func (*DHClientManager) Delete ¶
func (m *DHClientManager) Delete(_ context.Context, args *api.DHClientManagedId) (*api.DHClientManagedId, error)
Delete deletes a dhcp client.
func (*DHClientManager) Extract ¶
func (m *DHClientManager) Extract() error
Extract extracts the ISC DHCP client binary.
func (*DHClientManager) Get ¶
func (m *DHClientManager) Get(_ context.Context, args *api.DHClientManagedId) (*api.DHClientManaged, error)
Get gets one of the managed dhcp clients.
func (*DHClientManager) List ¶
func (m *DHClientManager) List(_ context.Context, args *api.DHClientManagerListArgs) (*api.DHClientManagerListReply, error)
List lists the managed dhcp clients.
Click to show internal directories.
Click to hide internal directories.