tftp

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIFile

type APIFile struct {
	Name      string `json:"name" required:"true"`
	Host      string `json:"host" required:"true"`
	SizeBytes int    `json:"sizeBytes" required:"true"`
}

type APIFilesDeleteInput

type APIFilesDeleteInput struct {
	Host string `query:"host"`
	Name string `query:"name"`
}

type APIFilesDownloadInput

type APIFilesDownloadInput struct {
	Host string `query:"host"`
	Name string `query:"name"`
}

type APIFilesDownloadOutput

type APIFilesDownloadOutput struct {
	Data []byte `json:"data" required:"true"`
}

type APIFilesGetOutput

type APIFilesGetOutput struct {
	Files []APIFile `json:"files" required:"true"`
}

type APIFilesPutInput

type APIFilesPutInput struct {
	Name string `json:"name" required:"true"`
	Host string `json:"host" required:"true"`
	Data []byte `json:"data" required:"true"`
}

type APIRoleConfigInput

type APIRoleConfigInput struct {
	Config RoleConfig `json:"config" required:"true"`
}

type APIRoleConfigOutput

type APIRoleConfigOutput struct {
	Config RoleConfig `json:"config" required:"true"`
}

type Role

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

func New

func New(instance roles.Instance) *Role

func (*Role) APIFilesDelete

func (r *Role) APIFilesDelete() usecase.Interactor

func (*Role) APIFilesDownload

func (r *Role) APIFilesDownload() usecase.Interactor

func (*Role) APIFilesGet

func (r *Role) APIFilesGet() usecase.Interactor

func (*Role) APIFilesPut

func (r *Role) APIFilesPut() usecase.Interactor

func (*Role) APIRoleConfigGet

func (r *Role) APIRoleConfigGet() usecase.Interactor

func (*Role) APIRoleConfigPut

func (r *Role) APIRoleConfigPut() usecase.Interactor

func (*Role) Reader

func (r *Role) Reader(filename string, rf io.ReaderFrom) error

func (*Role) Start

func (r *Role) Start(ctx context.Context, config []byte) error

func (*Role) Stop

func (r *Role) Stop()

func (*Role) Writer

func (r *Role) Writer(filename string, wt io.WriterTo) error

type RoleConfig

type RoleConfig struct {
	Port        int32 `json:"port"`
	EnableLocal bool  `json:"enableLocal"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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