services

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

Delete deletes a dhcp server.

func (*DHCPDManager) Extract

func (m *DHCPDManager) Extract() error

Extract extracts the ISC DHCP server binary.

func (*DHCPDManager) Get

Get gets one of the managed dhcp servers.

func (*DHCPDManager) List

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

Create creates a dhcp client.

func (*DHClientManager) Delete

Delete deletes a dhcp client.

func (*DHClientManager) Extract

func (m *DHClientManager) Extract() error

Extract extracts the ISC DHCP client binary.

func (*DHClientManager) Get

Get gets one of the managed dhcp clients.

func (*DHClientManager) List

List lists the managed dhcp clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL