controller

package
v0.0.0-...-450515c Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitOnErr

func ExitOnErr(err error)

func GetDeployment

func GetDeployment(w http.ResponseWriter, r *http.Request)

func GetDeploymentLogs

func GetDeploymentLogs(w http.ResponseWriter, r *http.Request)

func GetDeployments

func GetDeployments(w http.ResponseWriter, r *http.Request)

func GetKubeClient

func GetKubeClient() *kubernetes.Clientset

func GetNamespaces

func GetNamespaces(hub *Hub, w http.ResponseWriter, r *http.Request)

func StreamDeployments

func StreamDeployments(h *Hub)

func StreamUpdateds

func StreamUpdateds(hub *Hub, w http.ResponseWriter, r *http.Request)

func WatchNamespaces

func WatchNamespaces(h *Hub)

Types

type Container

type Container struct {
	Name  string
	Image string
	Envs  []string
}

type DeploymentEvent

type DeploymentEvent struct {
	Name           string
	Namespace      string
	Containers     []Container
	ReplicaCurrent string
	ReplicaDesired string
	Age            string
}

type Hub

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

func NewHub

func NewHub() *Hub

func (*Hub) Run

func (h *Hub) Run()

type NamespaceList

type NamespaceList struct {
	ID []string
}

Jump to

Keyboard shortcuts

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