Documentation ¶
Index ¶
- func AddClusterProfile(c *gin.Context)
- func CreateCluster(c *gin.Context)
- func CreateDeployment(c *gin.Context)
- func DeleteCluster(c *gin.Context)
- func DeleteClusterProfile(c *gin.Context)
- func DeleteDeployment(c *gin.Context)
- func FetchCluster(c *gin.Context)
- func FetchClusters(c *gin.Context)
- func GetClusterConfig(c *gin.Context)
- func GetClusterProfiles(c *gin.Context)
- func GetClusterStatus(c *gin.Context)
- func GetCommonClusterFromRequest(c *gin.Context) (cluster.CommonCluster, bool)
- func GetK8sConfig(c *gin.Context) (*[]byte, bool)
- func GetTillerStatus(c *gin.Context)
- func HelmDeploymentStatus(c *gin.Context)
- func InitHelmOnCluster(c *gin.Context)
- func ListDeployments(c *gin.Context)
- func ListEndpoints(c *gin.Context)
- func ParseField(c *gin.Context) map[string]interface{}
- func UpdateCluster(c *gin.Context)
- func UpdateClusterProfile(c *gin.Context)
- func UpgradeDeployment(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddClusterProfile ¶
AddClusterProfile handles /cluster/profiles/:type POST api endpoint. Saves ClusterProfileRequest data into the database. Saving failed if profile with the given name is already exists
func CreateCluster ¶
CreateCluster creates a K8S cluster in the cloud
func CreateDeployment ¶
CreateDeployment creates a Helm deployment
func DeleteCluster ¶
DeleteCluster deletes a K8S cluster from the cloud
func DeleteClusterProfile ¶
DeleteClusterProfile handles /cluster/profiles/:type/:name DELETE api endpoint. Deletes saved cluster profile. Deleting failed if the name is the default name.
func DeleteDeployment ¶
DeleteDeployment deletes a Helm deployment
func FetchClusters ¶
FetchClusters fetches all the K8S clusters from the cloud
func GetClusterConfig ¶
GetClusterConfig gets a cluster config
func GetClusterProfiles ¶
GetClusterProfiles handles /cluster/profiles/:type GET api endpoint. Sends back the saved cluster profiles
func GetClusterStatus ¶
GetClusterStatus retrieves the cluster status
func GetCommonClusterFromRequest ¶
func GetCommonClusterFromRequest(c *gin.Context) (cluster.CommonCluster, bool)
GetCommonClusterFromRequest just a simple getter to build commonCluster object this handles error messages directly
func GetK8sConfig ¶
GetK8sConfig returns the Kubernetes config
func GetTillerStatus ¶
GetTillerStatus checks if tiller ready to accept deployments
func HelmDeploymentStatus ¶
HelmDeploymentStatus checks the status of a deployment through the helm client API
func InitHelmOnCluster ¶
InitHelmOnCluster installs Helm on AKS cluster and configure the Helm client
func ListEndpoints ¶
ListEndpoints lists service public endpoints
func ParseField ¶
ParseField is to restrict other query TODO investigate to just pass the hasmap
func UpdateCluster ¶
UpdateCluster updates a K8S cluster in the cloud (e.g. autoscale)
func UpdateClusterProfile ¶
UpdateClusterProfile handles /cluster/profiles/:type PUT api endpoint. Updates existing cluster profiles. Updating failed if the name is the default name.
Types ¶
This section is empty.