server

package
v0.5.61 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func New

func New(addr string, l logger.Logger) *API

New creates a new server

func (*API) Start

func (a *API) Start()

Start the API server

func (*API) Stop

func (s *API) Stop()

Stop the API server

type ValidationRequest added in v0.5.36

type ValidationRequest struct {
	Action    string `json:"action"`
	Task      string `json:"task"`
	Condition string `json:"condition"`
	WorkDir   string `json:"work_dir"`
	User      string `json:"user"`
	Group     string `json:"group"`
	Target    string `json:"target"`
}

type ValidationResponse added in v0.5.36

type ValidationResponse struct {
	Task      string `json:"task"`
	Condition string `json:"condition"`
	ExitCode  int    `json:"exit_code"`
	Message   string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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