Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danderson/netboot
/ functions
Functions
307 in github.com/danderson/netboot
⨍
Functions
307
◇
Types & classes
48
↓ 73 callers
Function
fatalf
(msg string, args ...interface{})
pixiecore/cli/cli.go:62
↓ 44 callers
Method
Add
Add adds an option to Options
dhcp6/options.go:158
↓ 41 callers
Method
String
()
pixiecore/logging.go:28
↓ 37 callers
Method
Write
(b []byte)
tftp/interop_test.go:136
↓ 26 callers
Method
Close
Close closes the DHCP socket. Any blocked Read or Write operations will be unblocked and return errors.
dhcp4/conn.go:134
↓ 24 callers
Method
Uint16
Uint16 returns the value of option n as a uint16.
dhcp4/options.go:212
↓ 24 callers
Method
log
(subsystem, format string, args ...interface{})
pixiecore/logging.go:90
↓ 22 callers
Function
MakeOption
MakeOption creates an Option with given ID and value
dhcp6/options.go:68
↓ 20 callers
Method
debug
(subsystem, format string, args ...interface{})
pixiecore/logging.go:97
↓ 18 callers
Method
Bytes
Bytes returns the value of option n as a byte slice.
dhcp4/options.go:182
↓ 16 callers
Method
ClientID
ClientID returns the value in the Client ID Option or nil if the option doesn't exist
dhcp6/options.go:296
↓ 16 callers
Method
Serve
Serve listens for machines attempting to boot, and uses Booter to help them.
pixiecore/pixiecore.go:202
↓ 15 callers
Method
IP
IP returns the value of option n as an IPv4 address.
dhcp4/options.go:264
↓ 15 callers
Function
MakePacketBuilder
MakePacketBuilder creates a new PacketBuilder and initializes it with preferred and valid lifetimes
dhcp6/packet_builder.go:16
↓ 13 callers
Method
String
String returns the value of option n as a string.
dhcp4/options.go:191
↓ 13 callers
Method
Uint32
Uint32 returns the value of option n as a uint32.
dhcp4/options.go:224
↓ 9 callers
Method
ServerID
ServerID returns the value in the Server ID Option or nil if the option doesn't exist
dhcp6/options.go:305
↓ 9 callers
Method
machineEvent
(mac net.HardwareAddr, state machineState, format string, args ...interface{})
pixiecore/logging.go:74
↓ 9 callers
Function
serverConfigFlags
(cmd *cobra.Command)
pixiecore/cli/cli.go:72
↓ 8 callers
Function
NewRandomAddressPool
NewRandomAddressPool creates a new RandomAddressPool using pool start IP address, pool size, and valid lifetime of interface associations
dhcp6/pool/random_address_pool.go:60
↓ 8 callers
Function
Unmarshal
Unmarshal parses a DHCP message and returns a Packet.
dhcp4/packet.go:250
↓ 8 callers
Function
fatalf
(msg string, args ...interface{})
scripts/prune_old_versions/main.go:40
↓ 8 callers
Method
log
(subsystem, format string, args ...interface{})
pixiecore/pixicorev6.go:75
↓ 8 callers
Function
staticConfigFlags
(cmd *cobra.Command)
pixiecore/cli/cli.go:67
↓ 7 callers
Method
Marshal
Marshal returns the wire encoding of p.
dhcp4/packet.go:140
↓ 7 callers
Method
ReserveAddresses
ReserveAddresses creates new or retrieves active associations for interfaces in interfaceIDs list.
dhcp6/pool/random_address_pool.go:74
↓ 7 callers
Function
staticFromFlags
(cmd *cobra.Command, kernel string, initrds []string, extraCmdline string)
pixiecore/cli/cli.go:98
↓ 6 callers
Method
ClientArchType
ClientArchType returns the value in the Client Architecture Type Option, or 0 if the option doesn't exist
dhcp6/options.go:328
↓ 6 callers
Method
Err
Err returns the first non-EOF error encountered by the Reader.
pcap/reader.go:120
↓ 6 callers
Method
calculateIAIDHash
(clientID, interfaceID []byte)
dhcp6/pool/random_address_pool.go:154
↓ 6 callers
Method
extractLLAddressOrID
(optClientID []byte)
dhcp6/packet_builder.go:149
↓ 6 callers
Function
fatalf
(msg string, args ...interface{})
scripts/trigger_quay_build/main.go:32
↓ 5 callers
Method
BootFileURL
BootFileURL returns the value in the Boot File URL Option, or nil if the option doesn't exist
dhcp6/options.go:337
↓ 5 callers
Method
BootSpec
The given MAC address wants to know what it should boot. What should Pixiecore make it boot? Returning an error or a nil BootSpec will make Pixiecore
pixiecore/pixiecore.go:125
↓ 5 callers
Method
Byte
Byte returns the value of option n as a byte.
dhcp4/options.go:200
↓ 5 callers
Method
Close
()
tftp/interop_test.go:157
↓ 5 callers
Method
IaNaIDs
IaNaIDs returns a list of interface IDs in all Identity Association for Non-Temporary Addresses Options, or an empty list if none exist
dhcp6/options.go:315
↓ 5 callers
Function
MakeOptionRequestOptions
(options []uint16)
dhcp6/packet_test.go:94
↓ 5 callers
Method
Read
(b []byte)
tftp/interop_test.go:146
↓ 5 callers
Method
SetReadDeadline
(t time.Time)
dhcp4/conn.go:62
↓ 5 callers
Method
Size
()
dhcp6/pool/random_address_pool.go:35
↓ 5 callers
Method
debug
(subsystem, format string, args ...interface{})
pixiecore/pixicorev6.go:82
↓ 5 callers
Method
handleIpxe
(w http.ResponseWriter, r *http.Request)
pixiecore/http.go:47
↓ 5 callers
Method
makeMsgAdvertise
(transactionID [3]byte, serverDUID, clientID []byte, clientArchType uint16, associations []*IdentityAssociati
dhcp6/packet_builder.go:58
↓ 5 callers
Method
makeMsgReply
(transactionID [3]byte, serverDUID, clientID []byte, clientArchType uint16, associations []*IdentityAssociati
dhcp6/packet_builder.go:81
↓ 5 callers
Function
shouldDiscardRequest
(p *Packet, serverDuid []byte)
dhcp6/packet.go:91
↓ 5 callers
Function
tftpStr
tftpStr extracts a null-terminated string from the given bytes, and returns any remaining bytes. String content is checked to be a "read-useful" subs
tftp/tftp.go:386
↓ 4 callers
Method
IPs
IPs returns the value of option n as a list of IPv4 addresses.
dhcp4/options.go:248
↓ 4 callers
Function
MakeDNSServersOption
MakeDNSServersOption creates a Recursive DNS servers Option with the specified list of IP addresses
dhcp6/options.go:198
↓ 4 callers
Function
MakeIaAddrOption
MakeIaAddrOption creates an IA Address Option using IP address, preferred and valid lifetimes
dhcp6/options.go:181
↓ 4 callers
Function
MakeIaNaOption
MakeIaNaOption creates a Identity Association for Non-temporary Addresses Option with specified interface ID, t1 and t2 times, and an interface-specif
dhcp6/options.go:169
↓ 4 callers
Method
Send
(b []byte, addr *net.UDPAddr, ifidx int)
dhcp4/conn.go:61
↓ 4 callers
Function
StaticBooter
StaticBooter boots all machines with the same Spec. IDs in spec should be either local file paths, or HTTP/HTTPS URLs.
pixiecore/booters.go:36
↓ 4 callers
Function
fatalf
(msg string, args ...interface{})
scripts/trigger_docker_build/main.go:25
↓ 4 callers
Function
getURL
getURL returns the URL contained within id. id must have been created by signURL, with key.
pixiecore/urlsign.go:50
↓ 4 callers
Method
makeMsgInformationRequestReply
(transactionID [3]byte, serverDUID, clientID []byte, clientArchType uint16, bootFileURL []byte, dnsServers []
dhcp6/packet_builder.go:105
↓ 4 callers
Method
marshalLimited
marshalLimited serializes o into w. If nBytes > 0, as many options as possible are packed into that many bytes, inserting padding as needed, and the r
dhcp4/options.go:143
↓ 4 callers
Function
mustFile
(path string)
pixiecore/cli/cli.go:89
↓ 4 callers
Function
mustWrite
(dir, path, contents string)
pixiecore/booters_test.go:40
↓ 4 callers
Function
shouldDiscardSolicit
(p *Packet)
dhcp6/packet.go:77
↓ 4 callers
Function
signURL
signURL constructs an ID from u, signed with key.
pixiecore/urlsign.go:28
↓ 4 callers
Function
tftpError
tftpError constructs an ERROR packet. The error is coerced to the sensible subset of "netascii", namely the printable ASCII characters plus newline.
tftp/tftp.go:354
↓ 4 callers
Function
writeIP
(w io.Writer, ip net.IP)
dhcp4/packet.go:240
↓ 3 callers
Function
APIBooter
APIBooter gets a BootSpec from a remote server over HTTP. The API is described in README.api.md
pixiecore/booters.go:129
↓ 3 callers
Method
Close
()
dhcp4/conn_linux.go:89
↓ 3 callers
Function
ConstantHandler
ConstantHandler returns a Handler that serves bs for all requested paths.
tftp/handlers.go:55
↓ 3 callers
Method
GetBootURL
(id []byte, clientArchType uint16)
dhcp6/boot_configuration.go:7
↓ 3 callers
Method
GetRecursiveDNS
()
dhcp6/boot_configuration.go:9
↓ 3 callers
Method
HasBootFileURLOption
HasBootFileURLOption returns true if Options contains Boot File URL Option
dhcp6/options.go:259
↓ 3 callers
Method
HasServerID
HasServerID returns true if Options contains Server ID Option
dhcp6/options.go:272
↓ 3 callers
Method
IPMask
IPMask returns the value of option n as a net.IPMask.
dhcp4/options.go:276
↓ 3 callers
Function
MakeStatusOption
MakeStatusOption creates a Status Option with given status code and message
dhcp6/options.go:190
↓ 3 callers
Function
NewReader
NewReader returns a new Reader that decodes pcap data from r.
pcap/reader.go:57
↓ 3 callers
Method
Next
Next advances the Reader to the next packet in the input, which will then be available through the Packet method. It returns false when the Reader sto
pcap/reader.go:133
↓ 3 callers
Method
Packet
Packet returns the packet read by the last call to Next.
pcap/reader.go:115
↓ 3 callers
Method
ReadBootFile
Get the bytes corresponding to an ID given in Spec. Additionally returns the total number of bytes in the ReadCloser, or -1 if the size is unknown. B
pixiecore/pixiecore.go:132
↓ 3 callers
Method
RecvDHCP
RecvDHCP reads a Packet from the connection. It returns the packet and the interface it was received on.
dhcp4/conn.go:140
↓ 3 callers
Method
SendDHCP
SendDHCP sends pkt. The precise transmission mechanism depends on pkt.txType(). intf should be the net.Interface returned by RecvDHCP if responding to
dhcp4/conn.go:169
↓ 3 callers
Method
SetWriteDeadline
(t time.Time)
dhcp4/conn.go:63
↓ 3 callers
Method
Unmarshal
Unmarshal parses DHCP options into o.
dhcp4/options.go:76
↓ 3 callers
Function
UnmarshalOption
UnmarshalOption de-serializes an Option
dhcp6/options.go:90
↓ 3 callers
Method
calculateAssociationExpiration
(now time.Time)
dhcp6/pool/random_address_pool.go:150
↓ 3 callers
Method
calculateT1
()
dhcp6/packet_builder.go:141
↓ 3 callers
Method
calculateT2
()
dhcp6/packet_builder.go:145
↓ 3 callers
Function
expandCmdline
(tpl string, funcs template.FuncMap)
pixiecore/pixiecore.go:98
↓ 3 callers
Method
infoLog
(msg string, args ...interface{})
tftp/tftp.go:137
↓ 3 callers
Method
makeURLAbsolute
(urlStr string)
pixiecore/booters.go:311
↓ 3 callers
Function
mustMAC
(s string)
pixiecore/booters_test.go:32
↓ 3 callers
Method
serveFile
(path string)
pixiecore/booters.go:74
↓ 3 callers
Function
serverFromFlags
(cmd *cobra.Command)
pixiecore/cli/cli.go:132
↓ 2 callers
Function
CLI
CLI runs the Pixiecore commandline. This function always exits back to the OS when finished.
pixiecore/cli/cli.go:37
↓ 2 callers
Method
Close
Close closes Conn
dhcp6/conn.go:51
↓ 2 callers
Method
Copy
Copy returns a shallow copy of o.
dhcp4/options.go:132
↓ 2 callers
Method
HasClientID
HasClientID returns true if Options contains Client ID Option
dhcp6/options.go:266
↓ 2 callers
Method
HumanReadable
HumanReadable presents DHCPv6 options in a human-readable form
dhcp6/options.go:111
↓ 2 callers
Method
Int32
Int32 returns the value of option n as an int32.
dhcp4/options.go:236
↓ 2 callers
Method
Marshal
Marshal returns the wire encoding of o.
dhcp4/options.go:118
↓ 2 callers
Method
Marshal
Marshal serializes the Option
dhcp6/options.go:224
↓ 2 callers
Function
NewServerV6
NewServerV6 returns a new ServerV6.
pixiecore/pixicorev6.go:29
↓ 2 callers
Method
Peek
()
dhcp6/pool/random_address_pool.go:39
next →
1–100 of 307, ranked by callers