Documentation ¶
Index ¶
- Variables
- func AddClusterProfile(c *gin.Context)
- func AddSecrets(c *gin.Context)
- func AddUser(c *gin.Context)
- func CreateCluster(c *gin.Context)
- func CreateDeployment(c *gin.Context)
- func CreateOrganization(c *gin.Context)
- func DeleteCluster(c *gin.Context)
- func DeleteClusterProfile(c *gin.Context)
- func DeleteDeployment(c *gin.Context)
- func DeleteOrganization(c *gin.Context)
- func DeleteSecrets(c *gin.Context)
- func FetchCluster(c *gin.Context)
- func FetchClusters(c *gin.Context)
- func GetAllowedTypes(secretType string) (interface{}, error)
- func GetApiEndpoint(c *gin.Context)
- func GetCloudInfo(c *gin.Context)
- func GetClusterConfig(c *gin.Context)
- func GetClusterNodes(c *gin.Context)
- func GetClusterProfiles(c *gin.Context)
- func GetClusterStatus(c *gin.Context)
- func GetCommonClusterFromRequest(c *gin.Context) (cluster.CommonCluster, bool)
- func GetCommonClusterNameFromRequest(c *gin.Context) (string, bool)
- func GetK8sConfig(c *gin.Context) ([]byte, bool)
- func GetOrganizations(c *gin.Context)
- func GetSupportedClusterList(c *gin.Context)
- func GetSupportedFilters(c *gin.Context)
- func GetTillerStatus(c *gin.Context)
- func GetUsers(c *gin.Context)
- func HelmChart(c *gin.Context)
- func HelmCharts(c *gin.Context)
- func HelmDeploymentStatus(c *gin.Context)
- func HelmReposAdd(c *gin.Context)
- func HelmReposDelete(c *gin.Context)
- func HelmReposGet(c *gin.Context)
- func HelmReposModify(c *gin.Context)
- func HelmReposUpdate(c *gin.Context)
- func InitHelmOnCluster(c *gin.Context)
- func InstallSecretsToCluster(c *gin.Context)
- func IsValidSecretType(secretType string) error
- func ListAllowedSecretTypes(c *gin.Context)
- func ListDeployments(c *gin.Context)
- func ListEndpoints(c *gin.Context)
- func ListSecrets(c *gin.Context)
- func MetaHandler(router *gin.Engine, subpath string) gin.HandlerFunc
- func OrganizationMiddleware(c *gin.Context)
- func ParseField(c *gin.Context) map[string]interface{}
- func RedirectRoot(c *gin.Context)
- func RemoveUser(c *gin.Context)
- func UpdateCluster(c *gin.Context)
- func UpdateClusterProfile(c *gin.Context)
- func UpdateMonitoring(c *gin.Context)
- func UpgradeDeployment(c *gin.Context)
- type ChartQuery
Constants ¶
This section is empty.
Variables ¶
var ErrNotSupportedSecretType = errors.New("Not supported secret type")
ErrNotSupportedSecretType describe an error if the secret type is not supported
Functions ¶
func AddClusterProfile ¶
AddClusterProfile handles /profiles/cluster/:type POST api endpoint. Saves ClusterProfileRequest data into the database. Saving failed if profile with the given name is already exists
func AddUser ¶
AddUser adds a user to an organization, role=admin|member has to be in the body, otherwise member is the default role.
func CreateCluster ¶
CreateCluster creates a K8S cluster in the cloud
func CreateDeployment ¶
CreateDeployment creates a Helm deployment
func CreateOrganization ¶
CreateOrganization creates an organization for the calling user
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 DeleteOrganization ¶
DeleteOrganization deletes an organizaion by id
func DeleteSecrets ¶
DeleteSecrets delete a secret with the given secret id
func FetchClusters ¶
FetchClusters fetches all the K8S clusters from the cloud
func GetAllowedTypes ¶
GetAllowedTypes filters the allowed secret types if necessary
func GetApiEndpoint ¶
GetApiEndpoint returns the Kubernetes Api endpoint
func GetCloudInfo ¶
GetCloudInfo sends back the supported locations/k8sVersions/machineTypes
func GetClusterConfig ¶
GetClusterConfig gets a cluster config
func GetClusterProfiles ¶
GetClusterProfiles handles /profiles/cluster/: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 GetCommonClusterNameFromRequest ¶
GetCommonClusterNameFromRequest get cluster name from cluster request
func GetK8sConfig ¶
GetK8sConfig returns the Kubernetes config
func GetOrganizations ¶
GetOrganizations returns all organizations the user belongs to or a specific one from those by id
func GetSupportedClusterList ¶
GetSupportedClusterList sends back the supported cluster list
func GetSupportedFilters ¶
GetSupportedFilters sends back the supported filter words
func GetTillerStatus ¶
GetTillerStatus checks if tiller ready to accept deployments
func GetUsers ¶
GetUsers gets a user or lists all users from an organizaion depending on the presence of the id paramater
func HelmDeploymentStatus ¶
HelmDeploymentStatus checks the status of a deployment through the helm client API
func HelmReposDelete ¶
HelmReposDelete delete the helm repository
func HelmReposGet ¶
HelmReposGet listing helm repositories in the cluster
func HelmReposModify ¶
HelmReposModify modify the helm repository
func InitHelmOnCluster ¶
InitHelmOnCluster installs Helm on AKS cluster and configure the Helm client
func InstallSecretsToCluster ¶
InstallSecretsToCluster add all secrets from a repo to a cluster's namespace
func IsValidSecretType ¶
IsValidSecretType checks the given secret type is supported
func ListAllowedSecretTypes ¶
ListAllowedSecretTypes returns the allowed secret types and the required keys
func ListEndpoints ¶
ListEndpoints lists service public endpoints
func ListSecrets ¶
ListSecrets returns the user all secrets, if the secret type is filled, then filtered if repo is set list the secrets for a given repo
func MetaHandler ¶
func MetaHandler(router *gin.Engine, subpath string) gin.HandlerFunc
MetaHandler lists routes
func OrganizationMiddleware ¶
OrganizationMiddleware parses the organization id from the request, queries it from the database and saves it to the current context
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.
func UpgradeDeployment ¶
UpgradeDeployment - Upgrades helm deployment, if --reuse-value is specified reuses the last release's value.