Documentation ¶
Index ¶
- func AWSError(response *restful.Response, err awserr.Error)
- func AddVersionHeader(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func BadRequest(response *restful.Response, code errors.ErrorCode, err error)
- func EnableCORS(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func Errorf(response *restful.Response, status int, se models.ServerError)
- func HttpsRedirect(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func LogRequest(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
- func NotFound(response *restful.Response, message string)
- func NotImplemented(request *restful.Request, response *restful.Response)
- func ReturnError(response *restful.Response, err error)
- func ToHttpError(code errors.ErrorCode) int
- func WriteJobResponse(response *restful.Response, jobID string)
- type AdminHandler
- func (this *AdminHandler) GetConfig(request *restful.Request, response *restful.Response)
- func (this *AdminHandler) GetHealth(request *restful.Request, response *restful.Response)
- func (this *AdminHandler) GetVersion(request *restful.Request, response *restful.Response)
- func (this AdminHandler) Routes() *restful.WebService
- func (this *AdminHandler) RunEnvironmentScaler(request *restful.Request, response *restful.Response)
- func (this *AdminHandler) UpdateSQL(request *restful.Request, response *restful.Response)
- type DeployHandler
- func (this *DeployHandler) CreateDeploy(request *restful.Request, response *restful.Response)
- func (this *DeployHandler) DeleteDeploy(request *restful.Request, response *restful.Response)
- func (this *DeployHandler) GetDeploy(request *restful.Request, response *restful.Response)
- func (this *DeployHandler) ListDeploys(request *restful.Request, response *restful.Response)
- func (this *DeployHandler) Routes() *restful.WebService
- type EnvironmentHandler
- func (e *EnvironmentHandler) CreateEnvironment(request *restful.Request, response *restful.Response)
- func (e *EnvironmentHandler) CreateEnvironmentLink(request *restful.Request, response *restful.Response)
- func (e *EnvironmentHandler) DeleteEnvironment(request *restful.Request, response *restful.Response)
- func (e *EnvironmentHandler) DeleteEnvironmentLink(request *restful.Request, response *restful.Response)
- func (e *EnvironmentHandler) GetEnvironment(request *restful.Request, response *restful.Response)
- func (e *EnvironmentHandler) ListEnvironments(request *restful.Request, response *restful.Response)
- func (e *EnvironmentHandler) Routes() *restful.WebService
- func (e *EnvironmentHandler) UpdateEnvironment(request *restful.Request, response *restful.Response)
- type JobHandler
- type LoadBalancerHandler
- func (l *LoadBalancerHandler) CreateLoadBalancer(request *restful.Request, response *restful.Response)
- func (l *LoadBalancerHandler) DeleteLoadBalancer(request *restful.Request, response *restful.Response)
- func (l *LoadBalancerHandler) GetLoadBalancer(request *restful.Request, response *restful.Response)
- func (l *LoadBalancerHandler) ListLoadBalancers(request *restful.Request, response *restful.Response)
- func (l *LoadBalancerHandler) Routes() *restful.WebService
- func (l *LoadBalancerHandler) UpdateLoadBalancerHealthCheck(request *restful.Request, response *restful.Response)
- func (l *LoadBalancerHandler) UpdateLoadBalancerPorts(request *restful.Request, response *restful.Response)
- type ServiceHandler
- func (this *ServiceHandler) CreateService(request *restful.Request, response *restful.Response)
- func (this *ServiceHandler) DeleteService(request *restful.Request, response *restful.Response)
- func (this *ServiceHandler) GetService(request *restful.Request, response *restful.Response)
- func (this *ServiceHandler) GetServiceLogs(request *restful.Request, response *restful.Response)
- func (this *ServiceHandler) ListServices(request *restful.Request, response *restful.Response)
- func (this *ServiceHandler) Routes() *restful.WebService
- func (this *ServiceHandler) ScaleService(request *restful.Request, response *restful.Response)
- func (this *ServiceHandler) UpdateService(request *restful.Request, response *restful.Response)
- type TagHandler
- func (t *TagHandler) CreateTag(request *restful.Request, response *restful.Response)
- func (t *TagHandler) DeleteTag(request *restful.Request, response *restful.Response)
- func (t *TagHandler) FindTags(request *restful.Request, response *restful.Response)
- func (t *TagHandler) Routes() *restful.WebService
- type TaskHandler
- func (this *TaskHandler) CreateTask(request *restful.Request, response *restful.Response)
- func (this *TaskHandler) DeleteTask(request *restful.Request, response *restful.Response)
- func (this *TaskHandler) GetTask(request *restful.Request, response *restful.Response)
- func (this *TaskHandler) GetTaskLogs(request *restful.Request, response *restful.Response)
- func (this *TaskHandler) ListTasks(request *restful.Request, response *restful.Response)
- func (this *TaskHandler) Routes() *restful.WebService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddVersionHeader ¶
func AddVersionHeader(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
func BadRequest ¶
func EnableCORS ¶
func EnableCORS(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
func Errorf ¶
func Errorf(response *restful.Response, status int, se models.ServerError)
func HttpsRedirect ¶
func HttpsRedirect(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
func LogRequest ¶
func LogRequest(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
func NotImplemented ¶
func NotImplemented(request *restful.Request, response *restful.Response)
func ReturnError ¶
func ReturnError(response *restful.Response, err error)
func ToHttpError ¶
func WriteJobResponse ¶
func WriteJobResponse(response *restful.Response, jobID string)
Types ¶
type AdminHandler ¶
type AdminHandler struct {
AdminLogic logic.AdminLogic
}
func NewAdminHandler ¶
func NewAdminHandler(adminLogic logic.AdminLogic) *AdminHandler
func (*AdminHandler) GetConfig ¶
func (this *AdminHandler) GetConfig(request *restful.Request, response *restful.Response)
func (*AdminHandler) GetHealth ¶
func (this *AdminHandler) GetHealth(request *restful.Request, response *restful.Response)
func (*AdminHandler) GetVersion ¶
func (this *AdminHandler) GetVersion(request *restful.Request, response *restful.Response)
func (AdminHandler) Routes ¶
func (this AdminHandler) Routes() *restful.WebService
func (*AdminHandler) RunEnvironmentScaler ¶
func (this *AdminHandler) RunEnvironmentScaler(request *restful.Request, response *restful.Response)
func (*AdminHandler) UpdateSQL ¶
func (this *AdminHandler) UpdateSQL(request *restful.Request, response *restful.Response)
type DeployHandler ¶
type DeployHandler struct {
DeployLogic logic.DeployLogic
}
func NewDeployHandler ¶
func NewDeployHandler(deployLogic logic.DeployLogic) *DeployHandler
func (*DeployHandler) CreateDeploy ¶
func (this *DeployHandler) CreateDeploy(request *restful.Request, response *restful.Response)
func (*DeployHandler) DeleteDeploy ¶
func (this *DeployHandler) DeleteDeploy(request *restful.Request, response *restful.Response)
func (*DeployHandler) GetDeploy ¶
func (this *DeployHandler) GetDeploy(request *restful.Request, response *restful.Response)
func (*DeployHandler) ListDeploys ¶
func (this *DeployHandler) ListDeploys(request *restful.Request, response *restful.Response)
func (*DeployHandler) Routes ¶
func (this *DeployHandler) Routes() *restful.WebService
type EnvironmentHandler ¶
type EnvironmentHandler struct { EnvironmentLogic logic.EnvironmentLogic JobLogic logic.JobLogic }
func NewEnvironmentHandler ¶
func NewEnvironmentHandler(environmentLogic logic.EnvironmentLogic, jobLogic logic.JobLogic) *EnvironmentHandler
func (*EnvironmentHandler) CreateEnvironment ¶
func (e *EnvironmentHandler) CreateEnvironment(request *restful.Request, response *restful.Response)
func (*EnvironmentHandler) CreateEnvironmentLink ¶
func (e *EnvironmentHandler) CreateEnvironmentLink(request *restful.Request, response *restful.Response)
func (*EnvironmentHandler) DeleteEnvironment ¶
func (e *EnvironmentHandler) DeleteEnvironment(request *restful.Request, response *restful.Response)
func (*EnvironmentHandler) DeleteEnvironmentLink ¶
func (e *EnvironmentHandler) DeleteEnvironmentLink(request *restful.Request, response *restful.Response)
func (*EnvironmentHandler) GetEnvironment ¶
func (e *EnvironmentHandler) GetEnvironment(request *restful.Request, response *restful.Response)
func (*EnvironmentHandler) ListEnvironments ¶
func (e *EnvironmentHandler) ListEnvironments(request *restful.Request, response *restful.Response)
func (*EnvironmentHandler) Routes ¶
func (e *EnvironmentHandler) Routes() *restful.WebService
func (*EnvironmentHandler) UpdateEnvironment ¶
func (e *EnvironmentHandler) UpdateEnvironment(request *restful.Request, response *restful.Response)
type JobHandler ¶
func NewJobHandler ¶
func NewJobHandler(jobLogic logic.JobLogic) *JobHandler
func (*JobHandler) Delete ¶
func (j *JobHandler) Delete(request *restful.Request, response *restful.Response)
func (*JobHandler) GetJob ¶
func (j *JobHandler) GetJob(request *restful.Request, response *restful.Response)
func (*JobHandler) ListJobs ¶
func (j *JobHandler) ListJobs(request *restful.Request, response *restful.Response)
func (*JobHandler) Routes ¶
func (j *JobHandler) Routes() *restful.WebService
type LoadBalancerHandler ¶
type LoadBalancerHandler struct { LoadBalancerLogic logic.LoadBalancerLogic JobLogic logic.JobLogic }
func NewLoadBalancerHandler ¶
func NewLoadBalancerHandler(loadBalancerLogic logic.LoadBalancerLogic, jobLogic logic.JobLogic) *LoadBalancerHandler
func (*LoadBalancerHandler) CreateLoadBalancer ¶
func (l *LoadBalancerHandler) CreateLoadBalancer(request *restful.Request, response *restful.Response)
func (*LoadBalancerHandler) DeleteLoadBalancer ¶
func (l *LoadBalancerHandler) DeleteLoadBalancer(request *restful.Request, response *restful.Response)
func (*LoadBalancerHandler) GetLoadBalancer ¶
func (l *LoadBalancerHandler) GetLoadBalancer(request *restful.Request, response *restful.Response)
func (*LoadBalancerHandler) ListLoadBalancers ¶
func (l *LoadBalancerHandler) ListLoadBalancers(request *restful.Request, response *restful.Response)
func (*LoadBalancerHandler) Routes ¶
func (l *LoadBalancerHandler) Routes() *restful.WebService
func (*LoadBalancerHandler) UpdateLoadBalancerHealthCheck ¶
func (l *LoadBalancerHandler) UpdateLoadBalancerHealthCheck(request *restful.Request, response *restful.Response)
func (*LoadBalancerHandler) UpdateLoadBalancerPorts ¶
func (l *LoadBalancerHandler) UpdateLoadBalancerPorts(request *restful.Request, response *restful.Response)
type ServiceHandler ¶
type ServiceHandler struct { ServiceLogic logic.ServiceLogic JobLogic logic.JobLogic }
func NewServiceHandler ¶
func NewServiceHandler(serviceLogic logic.ServiceLogic, jobLogic logic.JobLogic) *ServiceHandler
func (*ServiceHandler) CreateService ¶
func (this *ServiceHandler) CreateService(request *restful.Request, response *restful.Response)
func (*ServiceHandler) DeleteService ¶
func (this *ServiceHandler) DeleteService(request *restful.Request, response *restful.Response)
func (*ServiceHandler) GetService ¶
func (this *ServiceHandler) GetService(request *restful.Request, response *restful.Response)
func (*ServiceHandler) GetServiceLogs ¶
func (this *ServiceHandler) GetServiceLogs(request *restful.Request, response *restful.Response)
func (*ServiceHandler) ListServices ¶
func (this *ServiceHandler) ListServices(request *restful.Request, response *restful.Response)
func (*ServiceHandler) Routes ¶
func (this *ServiceHandler) Routes() *restful.WebService
func (*ServiceHandler) ScaleService ¶
func (this *ServiceHandler) ScaleService(request *restful.Request, response *restful.Response)
func (*ServiceHandler) UpdateService ¶
func (this *ServiceHandler) UpdateService(request *restful.Request, response *restful.Response)
type TagHandler ¶
func NewTagHandler ¶
func NewTagHandler(tagData tag_store.TagStore) *TagHandler
func (*TagHandler) CreateTag ¶
func (t *TagHandler) CreateTag(request *restful.Request, response *restful.Response)
func (*TagHandler) DeleteTag ¶
func (t *TagHandler) DeleteTag(request *restful.Request, response *restful.Response)
func (*TagHandler) FindTags ¶
func (t *TagHandler) FindTags(request *restful.Request, response *restful.Response)
func (*TagHandler) Routes ¶
func (t *TagHandler) Routes() *restful.WebService
type TaskHandler ¶
func NewTaskHandler ¶
func NewTaskHandler(taskLogic logic.TaskLogic, jobLogic logic.JobLogic) *TaskHandler
func (*TaskHandler) CreateTask ¶
func (this *TaskHandler) CreateTask(request *restful.Request, response *restful.Response)
func (*TaskHandler) DeleteTask ¶
func (this *TaskHandler) DeleteTask(request *restful.Request, response *restful.Response)
func (*TaskHandler) GetTask ¶
func (this *TaskHandler) GetTask(request *restful.Request, response *restful.Response)
func (*TaskHandler) GetTaskLogs ¶
func (this *TaskHandler) GetTaskLogs(request *restful.Request, response *restful.Response)
func (*TaskHandler) ListTasks ¶
func (this *TaskHandler) ListTasks(request *restful.Request, response *restful.Response)
func (*TaskHandler) Routes ¶
func (this *TaskHandler) Routes() *restful.WebService
Click to show internal directories.
Click to hide internal directories.