binary

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Log   logr.Logger
	Patch []byte
}

implements the TFTP read and write function handlers.

func (Handler) Handle

func (h Handler) Handle(w http.ResponseWriter, req *http.Request)

Handle handles GET and HEAD responses to HTTP requests. Serves embedded iPXE binaries.

type TFTP

type TFTP struct {
	Log                  logr.Logger
	EnableTFTPSinglePort bool
	Addr                 netip.AddrPort
	Timeout              time.Duration
	Patch                []byte
	BlockSize            int
}

TFTP config settings.

func (TFTP) HandleRead

func (h TFTP) HandleRead(filename string, rf io.ReaderFrom) error

HandleRead handlers TFTP GET requests. The function signature satisfies the tftp.Server.readHandler parameter type.

func (TFTP) HandleWrite

func (h TFTP) HandleWrite(filename string, wt io.WriterTo) error

HandleWrite handles TFTP PUT requests. It will always return an error. This library does not support PUT.

func (*TFTP) ListenAndServe

func (h *TFTP) ListenAndServe(ctx context.Context) error

ListenAndServe will listen and serve iPXE binaries over TFTP.

Directories

Path Synopsis
Package binary handles embedding of the iPXE binaries.
Package binary handles embedding of the iPXE binaries.

Jump to

Keyboard shortcuts

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