Documentation
¶
Index ¶
Constants ¶
const ( // SocketPath is the Unix socket the packages API listens on (the CLI's PACKAGES_DEBUG_UNIX_SOCKET // default). SocketPath = "/tmp/deckhouse-debug.socket" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server serves the runtime API: the private tree on the Unix socket, the public one over TCP.
func NewSocketOnly ¶
NewSocketOnly builds the private tree on the Unix socket at socketPath and no TCP listener, for a process whose metrics and probes another server owns (addon-operator). Without metrics and an elector, /metrics answers 404 and /readyz reports ready's own answer.
func (*Server) GetElector ¶
func (s *Server) GetElector() *leaderelection.LeaderElector
GetElector returns the leader elector for this server.
func (*Server) GetMetrics ¶
func (s *Server) GetMetrics() metricsstorage.Storage
GetMetrics returns the metrics storage for this server.
func (*Server) SetElector ¶
func (s *Server) SetElector(elector *leaderelection.LeaderElector)
SetElector sets the leader elector for this server.