HUB
Sign inSign up

idobry/teleskope

By idobry

•Updated over 6 years ago

Image
0

364

idobry/teleskope repository overview

⁠teleskope

	//Get namespaces list
	r.HandleFunc("/list/ns", func(w http.ResponseWriter, r *http.Request) {
		controller.GetNamespaces(h, w, r)
	})
	//return
	type NamespaceList struct{
		ID []string
	}
	//Get deployments list in namespace
	r.HandleFunc("/list/dep/{ns}", func(w http.ResponseWriter, r *http.Request) {
		controller.GetDeployments(h, w, r)
	})
	//return
	type deployments struct {
		ID []string
	}
	//Get specific deployment in namespace
	r.HandleFunc("/dep/{ns}/{dep}", func(w http.ResponseWriter, r *http.Request) {
		controller.GetDeployment(h, w, r)
	})
	//return 
	type Container struct{
		Name string
		Image string
		Envs []string
	}
	type DeploymentEvent struct{
		Name string
		Namespace string
		Containers []Container
		ReplicaCurrent string
		ReplicaDesired string
	}
	//Stream deployments event
	r.HandleFunc("/ws", func(w http.ResponseWriter, r *http.Request) {
		controller.StreamUpdateds(h, w, r)
	})
	//return 
	type Container struct{
		Name string
		Image string
		Envs []string
	}
	type DeploymentEvent struct{
		Name string
		Namespace string
		Containers []Container
		ReplicaCurrent string
		ReplicaDesired string
	}
Tag summary
Recent tags
Content type
Image
Digest
Size
35.8 MB
Last updated
over 6 years ago
docker pull idobry/teleskope:latest