kubernetes

package
v0.0.0-...-3f85c9d Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RESPONSE_STATUS_OK    = "OK"
	RESPONSE_STATUS_ERROR = "ERROR"

	RESPONSE_CODE_OK    = 200
	RESPONSE_CODE_ERROR = 500
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RestHost        string
	RestPort        int
	ShutdownTimeout int
}

Config -

type KubeServer

type KubeServer struct {
	Config     *Config
	Router     *mux.Router
	HttpServer *http.Server
}

KubeServer -

func NewKubeServer

func NewKubeServer() (*KubeServer, error)

NewKubeServer - Create new Kubernetes REST server

func (*KubeServer) Shutdown

func (s *KubeServer) Shutdown()

Shutdown - Shutdown Kubernetes REST server

func (*KubeServer) Start

func (s *KubeServer) Start()

Start - Start Kubernetes REST server

type Liveness

type Liveness struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type Readyness

type Readyness struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

Jump to

Keyboard shortcuts

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