satellite

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Start()
	Stop()
}

Server is the interface of a satellite service, which provides the options to start and stop the underlying http server.

func New

func New(debugUsername, debugPassword, satelliteAddress, satelliteToken string, apiConfig api.Config, clustersClient clusters.Client, pluginsClient plugins.Client) (Server, error)

New return a new satellite server. It creates the underlying http server, with the given name, address and token.

We exclude the health check from all middlewares, because the health check just returns 200. Therefore we do not need our defined middlewares like request id, metrics, auth or loggin. This also makes it easier to analyze the logs in a Kubernetes cluster where the health check is called every x seconds, because we generate less logs.

Directories

Path Synopsis
api
middleware

Jump to

Keyboard shortcuts

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