svc

package
v0.0.0-...-aeee89b Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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

func (t *TFTPDManager) Create(ctx context.Context, req *TFTPDD.TFTPD) (*TFTPDD.TFTPDId, error)

Create creates a TFTP server. TODO: Download BIOS `filename` with a HTTP client

func (*TFTPDManager) Delete

func (t *TFTPDManager) Delete(ctx context.Context, req *TFTPDD.TFTPDId) (*TFTPDD.TFTPDId, error)

Delete deletes one of the managed TFTP servers.

func (*TFTPDManager) Get

Get gets one of the managed TFTP servers.

func (*TFTPDManager) List

List lists managed TFTP servers.

func (*TFTPDManager) Stop

func (t *TFTPDManager) Stop()

Stop stops the workers the TFTPDManager manages.

Jump to

Keyboard shortcuts

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