api

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMux added in v1.24.0

func NewMux(config crcConfig.Storage, machine machine.Client, logger Logger, telemetry Telemetry) http.Handler

Types

type Handler added in v1.20.0

type Handler struct {
	Logger    Logger
	Client    machine.Client
	Config    crcConfig.Storage
	Telemetry Telemetry
}

func NewHandler added in v1.24.0

func NewHandler(config crcConfig.Storage, machine machine.Client, logger Logger, telemetry Telemetry) *Handler

func (*Handler) Delete added in v1.20.0

func (h *Handler) Delete(c *context) error

func (*Handler) GetConfig added in v1.20.0

func (h *Handler) GetConfig(c *context) error

func (*Handler) GetVersion added in v1.20.0

func (h *Handler) GetVersion(c *context) error

func (*Handler) GetWebconsoleInfo added in v1.20.0

func (h *Handler) GetWebconsoleInfo(c *context) error

func (*Handler) Logs added in v1.24.0

func (h *Handler) Logs(c *context) error

func (*Handler) PowerOff added in v1.28.0

func (h *Handler) PowerOff(c *context) error

func (*Handler) SetConfig added in v1.20.0

func (h *Handler) SetConfig(c *context) error

func (*Handler) Start added in v1.20.0

func (h *Handler) Start(c *context) error

func (*Handler) Status added in v1.20.0

func (h *Handler) Status(c *context) error

func (*Handler) Stop added in v1.20.0

func (h *Handler) Stop(c *context) error

func (*Handler) UnsetConfig added in v1.20.0

func (h *Handler) UnsetConfig(c *context) error

func (*Handler) UploadTelemetry added in v1.26.0

func (h *Handler) UploadTelemetry(c *context) error

type Logger added in v1.24.0

type Logger interface {
	Messages() []string
}

type Telemetry added in v1.26.0

type Telemetry interface {
	UploadAction(action, source, status string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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