api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PMCommand

func PMCommand(c echo.Context, m *Methods, cmd Command) error

Types

type Command

type Command struct {
	Name string   `json:"name"`
	Exec string   `json:"exec"`
	Args []string `json:"args"`
}

type Methods

type Methods struct {
	Settings *internal.PanelSettings
}

func NewMethods

func NewMethods(s *internal.PanelSettings) *Methods

func (*Methods) DeletePackage

func (m *Methods) DeletePackage(c echo.Context) error

func (*Methods) GetDashboardInfo

func (m *Methods) GetDashboardInfo(c echo.Context) error

func (*Methods) GetDiskPartitions

func (m *Methods) GetDiskPartitions(c echo.Context) error

func (*Methods) GetSettings

func (m *Methods) GetSettings(c echo.Context) error

func (*Methods) GetVersion

func (m *Methods) GetVersion(c echo.Context) error

func (*Methods) ResetSettings

func (m *Methods) ResetSettings(c echo.Context) error

func (*Methods) UpdatePackage

func (m *Methods) UpdatePackage(c echo.Context) error

func (*Methods) UpdateSettings

func (m *Methods) UpdateSettings(c echo.Context) error

Jump to

Keyboard shortcuts

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