Documentation
¶
Overview ¶
Package rest provides the REST API server for AgentManager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v1.1.0
type Option func(*Server)
Option configures a Server during construction.
func WithStartTime ¶ added in v1.1.0
WithStartTime overrides the server's start time (primarily for tests).
func WithVersion ¶ added in v1.1.0
WithVersion sets the server version string reported by /status.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the REST API server.
func NewServer ¶
func NewServer( cfg *config.Config, plat platform.Platform, store storage.Store, det *detector.Detector, cat *catalog.Manager, inst *installer.Manager, opts ...Option, ) *Server
NewServer creates a new REST server.
Click to show internal directories.
Click to hide internal directories.