server

package
v0.5.27 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MPL-2.0 Imports: 14 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 hclog.Logger) *API

New creates a new server

func (*API) Start

func (s *API) Start()

Start the API server

func (*API) Stop

func (s *API) Stop()

Stop the API server

type ValidateRequest added in v0.5.12

type ValidateRequest struct {
	Timeout   int    `json:"timeout"`
	Task      string `json:"task"`
	Condition string `json:"condition"`
	WorkDir   string `json:"work_dir"`
	User      string `json:"user"`
	Target    string `json:"target"`
}

type ValidateResponse added in v0.5.12

type ValidateResponse 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