server

package
v0.0.0-...-41ed895 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() (*kubernetes.Clientset, error)

func GetHealth

func GetHealth(w http.ResponseWriter, req *http.Request)

Types

type Server

type Server struct {
	// Logger TODO Structured logs
	Config *kubernetes.Clientset
	Label  string
	Port   string
}

Server wraps the Kubernetes configuration

func (*Server) GetSecrets

func (s *Server) GetSecrets(w http.ResponseWriter, req *http.Request)

func (*Server) Init

func (s *Server) Init()

func (*Server) Serve

func (s *Server) Serve(tlsKey, tlsCert, port, label string) error

Jump to

Keyboard shortcuts

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