controller

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInstanceNotFound = errors.New("systemd unit instance not found")
)

Functions

func Home

func Home(client linode.Client, services *systemd.ServiceFactory, log *slog.Logger) echo.HandlerFunc

Types

type Linode

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

func NewLinode

func NewLinode(p LinodeParams) *Linode

func (*Linode) Boot

func (controller *Linode) Boot(c echo.Context) error

func (*Linode) Reboot

func (controller *Linode) Reboot(c echo.Context) error

func (*Linode) SSE

func (controller *Linode) SSE(c echo.Context) error

func (*Linode) Shutdown

func (controller *Linode) Shutdown(c echo.Context) error

type LinodeParams

type LinodeParams struct {
	fx.In

	Client  linode.Client
	Emitter linode.Emitter
	Logger  *slog.Logger
}

type Systemd

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

func NewSystemd

func NewSystemd(p SystemdParams) *Systemd

func (*Systemd) Disable

func (controller *Systemd) Disable(c echo.Context) error

func (*Systemd) Enable

func (controller *Systemd) Enable(c echo.Context) error

func (*Systemd) Restart

func (controller *Systemd) Restart(c echo.Context) error

func (*Systemd) SSE

func (controller *Systemd) SSE(c echo.Context) error

func (*Systemd) Start

func (controller *Systemd) Start(c echo.Context) error

func (*Systemd) Stop

func (controller *Systemd) Stop(c echo.Context) error

type SystemdParams

type SystemdParams struct {
	fx.In

	Emitter  systemd.Emitter
	Services *systemd.ServiceFactory
	Logger   *slog.Logger
}

Jump to

Keyboard shortcuts

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