cncserver

package
v0.0.0-...-ce49c92 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cncserver implements all the control endpoints needed to request various types of secrets and statistics about the running controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CNCServer

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

CNCServer holds the context for a specific instance of a command and control http server.

func MakeCNCServer

func MakeCNCServer(
	config cncConfig,
	agents cncAgentStatsReporter,
	vers string,
	tlsPath string,
	clock jwt.Clock,
) *CNCServer

MakeCNCServer creates a new CNC server from the provided config.

func (*CNCServer) RunServer

func (s *CNCServer) RunServer(ctx context.Context)

RunServer will start the HTTPS server and serve requests.

Jump to

Keyboard shortcuts

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