Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServices ¶
func GetServices(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
GetServices handler accepts incoming requests for list services, and it fetches the service information from the cluster and writes response back to the client.
func GetServicesByAppLabel ¶
func GetServicesByAppLabel(w http.ResponseWriter, r *http.Request, params httprouter.Params)
GetServicesByAppLabel handler fetches list of deployments with given app group in default ns and write response back to the client
func InitKubeClient ¶
func InitKubeClient() error
InitKubeClient reads the current cluster config and initializes api client and returns errors if unable to retrieve the token.
func ListDeployments ¶
func ListDeployments(ctx context.Context, opts metav1.ListOptions) (*appv1.DeploymentList, error)
ListDeployments makes kube client call to fetch the deployments based on given opts
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.