handlers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 16 Imported by: 0

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.

Jump to

Keyboard shortcuts

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