device_processor

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceProcessor

type DeviceProcessor struct {
	// contains filtered or unexported fields
}

func NewDeviceProcessor

func NewDeviceProcessor(device *devices.Device, authProviders *auth.ProviderPool, backupDir string) *DeviceProcessor

NewDeviceProcessor: Initializes a new DeviceProcessor object

func (*DeviceProcessor) Process

func (t *DeviceProcessor) Process(reciever *TFTPReceiver) error

func (*DeviceProcessor) ProcessTarget

func (t *DeviceProcessor) ProcessTarget(target_name string, reciever *TFTPReceiver) error

type ReceivedFile

type ReceivedFile struct {
	Name string
	Data bytes.Buffer
}

type TFTPReceiver

type TFTPReceiver struct {
	PublicAddr string
	// contains filtered or unexported fields
}

func NewTFTPReceiver

func NewTFTPReceiver(publicAddr string) *TFTPReceiver

func (*TFTPReceiver) ExpectFile

func (r *TFTPReceiver) ExpectFile(name string, ch chan ReceivedFile)

func (*TFTPReceiver) GetErrorChannel

func (r *TFTPReceiver) GetErrorChannel() chan error

func (*TFTPReceiver) Run

func (r *TFTPReceiver) Run()

func (*TFTPReceiver) Stop

func (r *TFTPReceiver) Stop()

Jump to

Keyboard shortcuts

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