Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

idobry/teleskope

Repository files navigation

THIS REPO IS DEPRECATED, please refer to https://github.com/teleskopeView/teleskope_k8s

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
	}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published