Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
HandleWrite handles TFTP PUT requests. It will always return an error. This library does not support PUT.
Click to show internal directories.
Click to hide internal directories.