http

package
v0.0.0-...-0ccc5cc Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Zlib Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

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

APIServer is the web server exposing the API of an agent.

func NewAPIServer

func NewAPIServer(config *APIServerConfig) *APIServer

NewAPIServer returns a pointer to a APIServer.

func (*APIServer) Start

func (server *APIServer) Start(edgeMode bool) error

Start starts a new web server by listening on the specified listenAddr.

type APIServerConfig

type APIServerConfig struct {
	Addr                 string
	Port                 string
	SystemService        agent.SystemService
	ClusterService       agent.ClusterService
	SignatureService     agent.DigitalSignatureService
	EdgeManager          *edge.Manager
	KubeClient           *kubernetes.KubeClient
	KubernetesDeployer   *exec.KubernetesDeployer
	RuntimeConfiguration *agent.RuntimeConfig
	AgentOptions         *agent.Options
	ContainerPlatform    agent.ContainerPlatform
}

APIServerConfig represents a server configuration used to create a new API server

Jump to

Keyboard shortcuts

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