api

package
v0.0.0-...-0d95af9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddClusterProfile

func AddClusterProfile(c *gin.Context)

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

func CreateCluster(c *gin.Context)

CreateCluster creates a K8S cluster in the cloud

func CreateDeployment

func CreateDeployment(c *gin.Context)

CreateDeployment creates a Helm deployment

func DeleteCluster

func DeleteCluster(c *gin.Context)

DeleteCluster deletes a K8S cluster from the cloud

func DeleteClusterProfile

func DeleteClusterProfile(c *gin.Context)

DeleteClusterProfile handles /cluster/profiles/:type/:name DELETE api endpoint. Deletes saved cluster profile. Deleting failed if the name is the default name.

func DeleteDeployment

func DeleteDeployment(c *gin.Context)

DeleteDeployment deletes a Helm deployment

func FetchCluster

func FetchCluster(c *gin.Context)

FetchCluster fetch a K8S cluster in the cloud

func FetchClusters

func FetchClusters(c *gin.Context)

FetchClusters fetches all the K8S clusters from the cloud

func GetClusterConfig

func GetClusterConfig(c *gin.Context)

GetClusterConfig gets a cluster config

func GetClusterProfiles

func GetClusterProfiles(c *gin.Context)

GetClusterProfiles handles /cluster/profiles/:type GET api endpoint. Sends back the saved cluster profiles

func GetClusterStatus

func GetClusterStatus(c *gin.Context)

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

func GetK8sConfig(c *gin.Context) (*[]byte, bool)

GetK8sConfig returns the Kubernetes config

func GetTillerStatus

func GetTillerStatus(c *gin.Context)

GetTillerStatus checks if tiller ready to accept deployments

func HelmDeploymentStatus

func HelmDeploymentStatus(c *gin.Context)

HelmDeploymentStatus checks the status of a deployment through the helm client API

func InitHelmOnCluster

func InitHelmOnCluster(c *gin.Context)

InitHelmOnCluster installs Helm on AKS cluster and configure the Helm client

func ListDeployments

func ListDeployments(c *gin.Context)

ListDeployments lists a Helm deployment

func ListEndpoints

func ListEndpoints(c *gin.Context)

ListEndpoints lists service public endpoints

func ParseField

func ParseField(c *gin.Context) map[string]interface{}

ParseField is to restrict other query TODO investigate to just pass the hasmap

func UpdateCluster

func UpdateCluster(c *gin.Context)

UpdateCluster updates a K8S cluster in the cloud (e.g. autoscale)

func UpdateClusterProfile

func UpdateClusterProfile(c *gin.Context)

UpdateClusterProfile handles /cluster/profiles/:type PUT api endpoint. Updates existing cluster profiles. Updating failed if the name is the default name.

func UpgradeDeployment

func UpgradeDeployment(c *gin.Context)

UpgradeDeployment - N/A

Types

This section is empty.

Jump to

Keyboard shortcuts

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