Documentation ¶
Index ¶
- type TFTPDManager
- func (t *TFTPDManager) Create(ctx context.Context, req *TFTPDD.TFTPD) (*TFTPDD.TFTPDId, error)
- func (t *TFTPDManager) Delete(ctx context.Context, req *TFTPDD.TFTPDId) (*TFTPDD.TFTPDId, error)
- func (t *TFTPDManager) Get(ctx context.Context, req *TFTPDD.TFTPDId) (*TFTPDD.TFTPDManaged, error)
- func (t *TFTPDManager) List(ctx context.Context, req *TFTPDD.TFTPDManagerListArgs) (*TFTPDD.TFTPDManagerListReply, error)
- func (t *TFTPDManager) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TFTPDManager ¶
type TFTPDManager struct { TFTPDD.UnimplementedTFTPDDManagerServer // contains filtered or unexported fields }
TFTPDManager manages TFTP servers.
func NewTFTPDManager ¶
func NewTFTPDManager(baseDir string) *TFTPDManager
NewTFTPDManager creates a new TFTPDManager.
func (*TFTPDManager) Create ¶
Create creates a TFTP server. TODO: Download BIOS `filename` with a HTTP client
func (*TFTPDManager) Get ¶
func (t *TFTPDManager) Get(ctx context.Context, req *TFTPDD.TFTPDId) (*TFTPDD.TFTPDManaged, error)
Get gets one of the managed TFTP servers.
func (*TFTPDManager) List ¶
func (t *TFTPDManager) List(ctx context.Context, req *TFTPDD.TFTPDManagerListArgs) (*TFTPDD.TFTPDManagerListReply, error)
List lists managed TFTP servers.
func (*TFTPDManager) Stop ¶
func (t *TFTPDManager) Stop()
Stop stops the workers the TFTPDManager manages.
Click to show internal directories.
Click to hide internal directories.