api

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMux

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

Types

type Handler

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

func NewHandler

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

func (*Handler) Delete

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

func (*Handler) GetConfig

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

func (*Handler) GetVersion

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

func (*Handler) GetWebconsoleInfo

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

func (*Handler) Logs

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

func (*Handler) PowerOff

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

func (*Handler) SetConfig

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

func (*Handler) Start

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

func (*Handler) Status

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

func (*Handler) Stop

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

func (*Handler) UnsetConfig

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

func (*Handler) UploadTelemetry

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

type Logger

type Logger interface {
	Messages() []string
}

type Telemetry

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