v1alpha1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lease

type Lease struct {
	APIVersion string                     `json:"apiVersion"`
	Kind       string                     `json:"kind"`
	Metadata   api.CustomResourceMetadata `json:"metadata"`
	Spec       LeaseSpec                  `json:"spec"`
	Status     LeaseStatus                `json:"status"`
}

type LeaseSpec

type LeaseSpec struct {
	Ip     string `json:"ip"`
	Mac    string `json:"mac"`
	Static bool   `json:"static"`
	Pool   string `json:"pool"`
}

type LeaseStatus

type LeaseStatus struct {
	Hostname string `json:"hostname"`
	Starts   string `json:"starts"`
	Ends     string `json:"ends"`
}

type PXE

type PXE struct {
	APIVersion string                     `json:"apiVersion"`
	Kind       string                     `json:"kind"`
	Metadata   api.CustomResourceMetadata `json:"metadata"`
	Spec       PXESpec                    `json:"spec"`
}

type PXESpec

type PXESpec struct {
	Data string `json:"data"`
}

type Pool

type Pool struct {
	APIVersion string                     `json:"apiVersion"`
	Kind       string                     `json:"kind"`
	Metadata   api.CustomResourceMetadata `json:"metadata"`
	Spec       PoolSpec                   `json:"spec"`
}

func (*Pool) GetDNS

func (pool *Pool) GetDNS() []net.IP

func (*Pool) GetMask

func (pool *Pool) GetMask() (net.IPMask, error)

func (*Pool) GetNTP

func (pool *Pool) GetNTP() []net.IP

type PoolSpec

type PoolSpec struct {
	Priority  int      `json:"priority"`
	Subnet    string   `json:"subnet"`
	Start     string   `json:"start"`
	End       string   `json:"end"`
	Routers   string   `json:"routers"`
	Broadcast string   `json:"broadcast"`
	Dns       []string `json:"dns"`
	Ntp       []string `json:"ntp"`
	Domain    string   `json:"domain"`
	Lease     string   `json:"lease"`
	Filename  string   `json:"filename"`
	Static    bool     `json:"static"`
}

Jump to

Keyboard shortcuts

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