updater

package
v0.0.0-...-07cd727 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUpdateHandlerNotImplemented = errors.New("update handler not implemented")

Functions

This section is empty.

Types

type Target

type Target struct {
	BaseURL    string
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func NewTarget

func NewTarget(baseURL string, httpClient *http.Client) (*Target, error)

func (*Target) Reboot

func (t *Target) Reboot() error

func (*Target) StreamTo

func (t *Target) StreamTo(suffix string, r io.Reader) error

suffix is one of boot, root, mbr, bootonly.

func (*Target) Supports

func (t *Target) Supports(feature string) bool

func (*Target) Switch

func (t *Target) Switch() error

Jump to

Keyboard shortcuts

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