handlers

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

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

Go to latest
Published: Sep 21, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplicationCreate

func ApplicationCreate(w http.ResponseWriter, r *http.Request)

ApplicationCreate creates a new resource for the given application, environment, cluster

func ApplicationDelete

func ApplicationDelete(w http.ResponseWriter, r *http.Request)

ApplicationDelete is a wrapper to delete kuberbetes deployment

func ApplicationDeploy

func ApplicationDeploy(w http.ResponseWriter, r *http.Request)

ApplicationDeploy replaces the existing application on the cluster

func ApplicationGetAllClustersDetail

func ApplicationGetAllClustersDetail(w http.ResponseWriter, r *http.Request)

ApplicationGetAllClustersDetail ...

func ApplicationGetClusterDetail

func ApplicationGetClusterDetail(w http.ResponseWriter, r *http.Request)

ApplicationGetClusterDetail ...

func ApplicationListClusters

func ApplicationListClusters(w http.ResponseWriter, r *http.Request)

ApplicationListClusters ...

func ApplicationProvision

func ApplicationProvision(w http.ResponseWriter, r *http.Request)

ApplicationProvision is a wrapper to deploy applications to kubernetes

func ApplicationStatus

func ApplicationStatus(w http.ResponseWriter, r *http.Request)

ApplicationStatus fetches the status of kubernetes application

func ApplicationUpdate

func ApplicationUpdate(w http.ResponseWriter, r *http.Request)

ApplicationUpdate ...

func ApplicationWaitForReady

func ApplicationWaitForReady(w http.ResponseWriter, r *http.Request)

ApplicationWaitForReady - Wait for a application to be fully deployed. this is a sync call.

func DeleteJob

func DeleteJob(w http.ResponseWriter, r *http.Request)

DeleteJob deletes a kubernetes job from given app-env-cluster

func EventStatus

func EventStatus(w http.ResponseWriter, r *http.Request)

EventStatus parses and saves Jenkins event post data to database

func FindAndReserveCluster

func FindAndReserveCluster(client *redis.Client, rediskey string, clusters models.ClusterList, ttl time.Duration) (string, error)

FindAndReserveCluster ...

func FreeFeatureCluster

func FreeFeatureCluster(w http.ResponseWriter, r *http.Request)

FreeFeatureCluster ...

func GetFeatureCluster

func GetFeatureCluster(w http.ResponseWriter, r *http.Request)

GetFeatureCluster ...

func GetGithubRepos

func GetGithubRepos(w http.ResponseWriter, r *http.Request)

GetGithubRepos downloads Github repos

func GetJobStatus

func GetJobStatus(w http.ResponseWriter, r *http.Request)

GetJobStatus Get execution status of a Job running on cluster

func HealthCheck

func HealthCheck(w http.ResponseWriter, r *http.Request)

HealthCheck is a health check for kubeAM

func Index

func Index(w http.ResponseWriter, r *http.Request)

Index default routes

func LoadGitRepos

func LoadGitRepos(w http.ResponseWriter, r *http.Request)

LoadGitRepos ...

func ReserveCluster

func ReserveCluster(client *redis.Client, rediskey, cluster string, t time.Duration) error

ReserveCluster ...

func ReserveFeatureCluster

func ReserveFeatureCluster(w http.ResponseWriter, r *http.Request)

ReserveFeatureCluster reserves a feature cluster

func RunJob

func RunJob(w http.ResponseWriter, r *http.Request)

RunJob parses payload to execute the cron command and it's arguments

func SelfProvision

func SelfProvision(w http.ResponseWriter, r *http.Request)

SelfProvision ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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