Documentation
¶
Index ¶
- Constants
- Variables
- func FormatJSON(v any) string
- func IsDir(path string) bool
- func IsFile(pathname string) bool
- type AddResponse
- type Config
- type CpioFile
- type DeleteResponse
- type Host
- type HostAddressResponse
- type HostCache
- func (c *HostCache) AddHostHandler(w http.ResponseWriter, r *http.Request)
- func (c *HostCache) DefaultHandler(w http.ResponseWriter, r *http.Request)
- func (c *HostCache) DeleteHostHandler(w http.ResponseWriter, r *http.Request)
- func (c *HostCache) HostAddressQueryHandler(w http.ResponseWriter, r *http.Request)
- func (c *HostCache) HostBootedHandler(w http.ResponseWriter, r *http.Request)
- func (c *HostCache) ListHostsHandler(w http.ResponseWriter, r *http.Request)
- func (c *HostCache) UploadPackageHandler(w http.ResponseWriter, r *http.Request)
- type HostListResponse
- type InitFile
- type Initrd
- type MkBoot
- type Options
- type Response
- type Server
Constants ¶
View Source
const DEFAULT_ADDRESS = "127.0.0.1"
View Source
const DEFAULT_HOSTNAME = "netboot.local"
View Source
const DEFAULT_PORT = "2014"
View Source
const Version = "1.0.0"
Variables ¶
View Source
var IPXE_PATTERN = regexp.MustCompile(`^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})\.ipxe$`)
View Source
var MAC_PATTERN = regexp.MustCompile(`^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$`)
View Source
var PKG_PATTERN = regexp.MustCompile(`^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})\.tgz$`)
Functions ¶
func FormatJSON ¶
Types ¶
type AddResponse ¶
type DeleteResponse ¶
type HostAddressResponse ¶
type HostCache ¶
type HostCache struct {
// contains filtered or unexported fields
}
func NewHostCache ¶
func (*HostCache) AddHostHandler ¶
func (c *HostCache) AddHostHandler(w http.ResponseWriter, r *http.Request)
func (*HostCache) DefaultHandler ¶
func (c *HostCache) DefaultHandler(w http.ResponseWriter, r *http.Request)
func (*HostCache) DeleteHostHandler ¶
func (c *HostCache) DeleteHostHandler(w http.ResponseWriter, r *http.Request)
func (*HostCache) HostAddressQueryHandler ¶
func (c *HostCache) HostAddressQueryHandler(w http.ResponseWriter, r *http.Request)
func (*HostCache) HostBootedHandler ¶
func (c *HostCache) HostBootedHandler(w http.ResponseWriter, r *http.Request)
func (*HostCache) ListHostsHandler ¶
func (c *HostCache) ListHostsHandler(w http.ResponseWriter, r *http.Request)
func (*HostCache) UploadPackageHandler ¶
func (c *HostCache) UploadPackageHandler(w http.ResponseWriter, r *http.Request)
type HostListResponse ¶
type Initrd ¶
type Initrd struct {
// contains filtered or unexported fields
}
type MkBoot ¶
type MkBoot struct {
Config *Config
Dir string
Tarball string
Response string
DiskLabelTemplate string
}
Click to show internal directories.
Click to hide internal directories.