Documentation ¶
Index ¶
- type Handlers
- func (h *Handlers) AddCDNClusterToSecurityGroup(ctx *gin.Context)
- func (h *Handlers) AddCDNToCDNCluster(ctx *gin.Context)
- func (h *Handlers) AddPermissionForRole(ctx *gin.Context)
- func (h *Handlers) AddRoleToUser(ctx *gin.Context)
- func (h *Handlers) AddSchedulerClusterToCDNCluster(ctx *gin.Context)
- func (h *Handlers) AddSchedulerClusterToSecurityGroup(ctx *gin.Context)
- func (h *Handlers) AddSchedulerToSchedulerCluster(ctx *gin.Context)
- func (h *Handlers) CreateCDN(ctx *gin.Context)
- func (h *Handlers) CreateCDNCluster(ctx *gin.Context)
- func (h *Handlers) CreateOauth(ctx *gin.Context)
- func (h *Handlers) CreatePreheat(ctx *gin.Context)
- func (h *Handlers) CreateRole(ctx *gin.Context)
- func (h *Handlers) CreateScheduler(ctx *gin.Context)
- func (h *Handlers) CreateSchedulerCluster(ctx *gin.Context)
- func (h *Handlers) CreateSecurityGroup(ctx *gin.Context)
- func (h *Handlers) DeletePermissionForRole(ctx *gin.Context)
- func (h *Handlers) DeleteRoleForUser(ctx *gin.Context)
- func (h *Handlers) DestroyCDN(ctx *gin.Context)
- func (h *Handlers) DestroyCDNCluster(ctx *gin.Context)
- func (h *Handlers) DestroyOauth(ctx *gin.Context)
- func (h *Handlers) DestroyRole(ctx *gin.Context)
- func (h *Handlers) DestroyScheduler(ctx *gin.Context)
- func (h *Handlers) DestroySchedulerCluster(ctx *gin.Context)
- func (h *Handlers) DestroySecurityGroup(ctx *gin.Context)
- func (h *Handlers) GetCDN(ctx *gin.Context)
- func (h *Handlers) GetCDNCluster(ctx *gin.Context)
- func (h *Handlers) GetCDNClusters(ctx *gin.Context)
- func (h *Handlers) GetCDNs(ctx *gin.Context)
- func (h *Handlers) GetHealth(ctx *gin.Context)
- func (h *Handlers) GetOauth(ctx *gin.Context)
- func (h *Handlers) GetOauths(ctx *gin.Context)
- func (h *Handlers) GetPermissions(g *gin.Engine) func(ctx *gin.Context)
- func (h *Handlers) GetPreheat(ctx *gin.Context)
- func (h *Handlers) GetRole(ctx *gin.Context)
- func (h *Handlers) GetRoles(ctx *gin.Context)
- func (h *Handlers) GetRolesForUser(ctx *gin.Context)
- func (h *Handlers) GetScheduler(ctx *gin.Context)
- func (h *Handlers) GetSchedulerCluster(ctx *gin.Context)
- func (h *Handlers) GetSchedulerClusters(ctx *gin.Context)
- func (h *Handlers) GetSchedulers(ctx *gin.Context)
- func (h *Handlers) GetSecurityGroup(ctx *gin.Context)
- func (h *Handlers) GetSecurityGroups(ctx *gin.Context)
- func (h *Handlers) GetUser(ctx *gin.Context)
- func (h *Handlers) OauthSignin(ctx *gin.Context)
- func (h *Handlers) OauthSigninCallback(j *jwt.GinJWTMiddleware) func(*gin.Context)
- func (h *Handlers) ResetPassword(ctx *gin.Context)
- func (h *Handlers) SignUp(ctx *gin.Context)
- func (h *Handlers) UpdateCDN(ctx *gin.Context)
- func (h *Handlers) UpdateCDNCluster(ctx *gin.Context)
- func (h *Handlers) UpdateOauth(ctx *gin.Context)
- func (h *Handlers) UpdateScheduler(ctx *gin.Context)
- func (h *Handlers) UpdateSchedulerCluster(ctx *gin.Context)
- func (h *Handlers) UpdateSecurityGroup(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
func (*Handlers) AddCDNClusterToSecurityGroup ¶
@Summary Add CDN to SecurityGroup @Description Add CDN to SecurityGroup @Tags SecurityGroup @Accept json @Produce json @Param id path string true "id" @Param cdn_cluster_id path string true "cdn cluster id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /security-groups/{id}/cdn-clusters/{cdn_cluster_id} [put]
func (*Handlers) AddCDNToCDNCluster ¶
@Summary Add Instance to CDNCluster @Description Add CDN to CDNCluster @Tags CDNCluster @Accept json @Produce json @Param id path string true "id" @Param cdn_id path string true "cdn id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /cdn-clusters/{id}/cdns/{cdn_id} [put]
func (*Handlers) AddPermissionForRole ¶
@Summary Add Permission For Role @Description Add Permission by json config @Tags Role @Accept json @Produce json @Param Permission body types.AddPermissionForRoleRequest true "Permission" @Param role path string true "role" @Success 200 @Failure 400 @Failure 500 @Router /roles/:role/permissions [post]
func (*Handlers) AddRoleToUser ¶
@Summary Add Role For User @Description add role to user by uri config @Tags Users @Accept json @Produce json @Param id path string true "id" @Param role path string true "role" @Success 200 @Failure 400 @Failure 500 @Router /users/:id/roles/:role [put]
func (*Handlers) AddSchedulerClusterToCDNCluster ¶
@Summary Add SchedulerCluster to CDNCluster @Description Add SchedulerCluster to CDNCluster @Tags CDNCluster @Accept json @Produce json @Param id path string true "id" @Param scheduler_cluster_id path string true "scheduler cluster id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /cdn-clusters/{id}/scheduler-clusters/{scheduler_cluster_id} [put]
func (*Handlers) AddSchedulerClusterToSecurityGroup ¶
@Summary Add Scheduler to SecurityGroup @Description Add Scheduler to SecurityGroup @Tags SecurityGroup @Accept json @Produce json @Param id path string true "id" @Param scheduler_cluster_id path string true "scheduler cluster id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /security-groups/{id}/scheduler-clusters/{scheduler_cluster_id} [put]
func (*Handlers) AddSchedulerToSchedulerCluster ¶
@Summary Add Scheduler to schedulerCluster @Description Add Scheduler to schedulerCluster @Tags SchedulerCluster @Accept json @Produce json @Param id path string true "id" @Param scheduler_id path string true "scheduler id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /scheduler-clusters/{id}/schedulers/{scheduler_id} [put]
func (*Handlers) CreateCDN ¶
@Summary Create CDN @Description create by json config @Tags CDN @Accept json @Produce json @Param CDN body types.CreateCDNRequest true "CDN" @Success 200 {object} model.CDN @Failure 400 @Failure 404 @Failure 500 @Router /cdns [post]
func (*Handlers) CreateCDNCluster ¶
@Summary Create CDNCluster @Description create by json config @Tags CDNCluster @Accept json @Produce json @Param CDNCluster body types.CreateCDNClusterRequest true "DNCluster" @Success 200 {object} model.CDNCluster @Failure 400 @Failure 404 @Failure 500 @Router /cdn-clusters [post]
func (*Handlers) CreateOauth ¶
@Summary Create Oauth @Description create by json config @Tags Oauth @Accept json @Produce json @Param Oauth body types.CreateOauthRequest true "Oauth" @Success 200 {object} model.Oauth @Failure 400 @Failure 404 @Failure 500 @Router /oauth [post]
func (*Handlers) CreatePreheat ¶
@Summary Create Preheat @Description create by json config @Tags Preheat @Accept json @Produce json @Param CDN body types.CreatePreheatRequest true "Preheat" @Success 200 {object} types.Preheat @Failure 400 @Failure 404 @Failure 500 @Router /preheats [post]
func (*Handlers) CreateRole ¶
@Summary Create Role @Description Create Role by json config @Tags Role @Accept json @Produce json @Param Role body types.CreateRoleRequest true "Role" @Success 200 @Failure 400 @Failure 500 @Router /roles [post]
func (*Handlers) CreateScheduler ¶
@Summary Create Scheduler @Description create by json config @Tags Scheduler @Accept json @Produce json @Param Scheduler body types.CreateSchedulerRequest true "Scheduler" @Success 200 {object} model.Scheduler @Failure 400 @Failure 404 @Failure 500 @Router /schedulers [post]
func (*Handlers) CreateSchedulerCluster ¶
@Summary Create SchedulerCluster @Description create by json config @Tags SchedulerCluster @Accept json @Produce json @Param SchedulerCluster body types.CreateSchedulerClusterRequest true "SchedulerCluster" @Success 200 {object} model.SchedulerCluster @Failure 400 @Failure 404 @Failure 500 @Router /scheduler-clusters [post]
func (*Handlers) CreateSecurityGroup ¶
@Summary Create SecurityGroup @Description create by json config @Tags SecurityGroup @Accept json @Produce json @Param SecurityGroup body types.CreateSecurityGroupRequest true "SecurityGroup" @Success 200 {object} model.SecurityGroup @Failure 400 @Failure 404 @Failure 500 @Router /security-groups [post]
func (*Handlers) DeletePermissionForRole ¶
@Summary Update Role @Description Remove Role Permission by json config @Tags Role @Accept json @Produce json @Param Permission body types.DeletePermissionForRoleRequest true "Permission" @Param role path string true "role" @Success 200 @Failure 400 @Failure 500 @Router /roles/:role/permissions [delete]
func (*Handlers) DeleteRoleForUser ¶
@Summary Delete Role For User @Description delete role by uri config @Tags Users @Accept json @Produce json @Param id path string true "id" @Param role path string true "role" @Success 200 @Failure 400 @Failure 500 @Router /users/:id/roles/:role [delete]
func (*Handlers) DestroyCDN ¶
@Summary Destroy CDN @Description Destroy by id @Tags CDN @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /cdns/{id} [delete]
func (*Handlers) DestroyCDNCluster ¶
@Summary Destroy CDNCluster @Description Destroy by id @Tags CDNCluster @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /cdn-clusters/{id} [delete]
func (*Handlers) DestroyOauth ¶
@Summary Destroy Oauth @Description Destroy by id @Tags Oauth @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /oauth/{id} [delete]
func (*Handlers) DestroyRole ¶
@Summary Destroy Role @Description Destroy role by json config @Tags Role @Accept json @Produce json @Param role path string true "role" @Success 200 @Failure 400 @Failure 500 @Router /roles/:role [delete]
func (*Handlers) DestroyScheduler ¶
@Summary Destroy Scheduler @Description Destroy by id @Tags Scheduler @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id} [delete]
func (*Handlers) DestroySchedulerCluster ¶
@Summary Destroy SchedulerCluster @Description Destroy by id @Tags SchedulerCluster @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /scheduler-clusters/{id} [delete]
func (*Handlers) DestroySecurityGroup ¶
@Summary Destroy SecurityGroup @Description Destroy by id @Tags SecurityGroup @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /securityGroups/{id} [delete]
func (*Handlers) GetCDN ¶
@Summary Get CDN @Description Get CDN by id @Tags CDN @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.CDN @Failure 400 @Failure 404 @Failure 500 @Router /cdns/{id} [get]
func (*Handlers) GetCDNCluster ¶
@Summary Get CDNCluster @Description Get CDNCluster by id @Tags CDNCluster @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.CDNCluster @Failure 400 @Failure 404 @Failure 500 @Router /cdn-clusters/{id} [get]
func (*Handlers) GetCDNClusters ¶
@Summary Get CDNClusters @Description Get CDNClusters @Tags CDNCluster @Accept json @Produce json @Param page query int true "current page" default(0) @Param per_page query int true "return max item count, default 10, max 50" default(10) minimum(2) maximum(50) @Success 200 {object} []model.CDNCluster @Failure 400 @Failure 404 @Failure 500 @Router /cdn-clusters [get]
func (*Handlers) GetCDNs ¶
@Summary Get CDNs @Description Get CDNs @Tags CDN @Accept json @Produce json @Param page query int true "current page" default(0) @Param per_page query int true "return max item count, default 10, max 50" default(10) minimum(2) maximum(50) @Success 200 {object} []model.CDN @Failure 400 @Failure 404 @Failure 500 @Router /cdns [get]
func (*Handlers) GetHealth ¶
@Summary Get Health @Description Get app health @Tags Health @Accept json @Produce json @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /healthy [get]
func (*Handlers) GetOauth ¶
@Summary Get Oauth @Description Get Oauth by id @Tags Oauth @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.Oauth @Failure 400 @Failure 404 @Failure 500 @Router /oauth/{id} [get]
func (*Handlers) GetOauths ¶
@Summary Get Oauths @Description Get Oauths @Tags Oauth @Accept json @Produce json @Param page query int true "current page" default(0) @Param per_page query int true "return max item count, default 10, max 50" default(10) minimum(2) maximum(50) @Success 200 {object} []model.Oauth @Failure 400 @Failure 404 @Failure 500 @Router /oauth [get]
func (*Handlers) GetPermissions ¶
@Summary Get Permissions @Description Get Permissions @Tags Permission @Produce json @Success 200 {object} []rbac.Permission @Failure 400 @Failure 500 @Router /permissions [get]
func (*Handlers) GetPreheat ¶
@Summary Get Preheat @Description Get Preheat by id @Tags Preheat @Accept json @Produce json @Param id path string true "id" @Success 200 {object} types.Preheat @Failure 400 @Failure 404 @Failure 500 @Router /preheats/{id} [get]
func (*Handlers) GetRole ¶
@Summary Get Role @Description Get Role @Tags Role @Accept json @Produce json @Param role path string true "role" @Success 200 @Failure 400 @Failure 500 @Router /roles/:role [get]
func (*Handlers) GetRoles ¶
@Summary Get Roles @Description Get roles @Tags Role @Accept json @Produce json @Success 200 @Failure 400 @Failure 500 @Router /roles [get]
func (*Handlers) GetRolesForUser ¶
@Summary Get User Roles @Description get roles by json config @Tags User @Produce json @Param id path string true "id" @Success 200 {object} []string @Failure 400 @Failure 500 @Router /users/:id/roles [get]
func (*Handlers) GetScheduler ¶
@Summary Get Scheduler @Description Get Scheduler by id @Tags Scheduler @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.Scheduler @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id} [get]
func (*Handlers) GetSchedulerCluster ¶
@Summary Get SchedulerCluster @Description Get SchedulerCluster by id @Tags SchedulerCluster @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.SchedulerCluster @Failure 400 @Failure 404 @Failure 500 @Router /scheduler-clusters/{id} [get]
func (*Handlers) GetSchedulerClusters ¶
@Summary Get SchedulerClusters @Description Get SchedulerClusters @Tags SchedulerCluster @Accept json @Produce json @Param page query int true "current page" default(0) @Param per_page query int true "return max item count, default 10, max 50" default(10) minimum(2) maximum(50) @Success 200 {object} []model.SchedulerCluster @Failure 400 @Failure 404 @Failure 500 @Router /scheduler-clusters [get]
func (*Handlers) GetSchedulers ¶
@Summary Get Schedulers @Description Get Schedulers @Tags Scheduler @Accept json @Produce json @Param page query int true "current page" default(0) @Param per_page query int true "return max item count, default 10, max 50" default(10) minimum(2) maximum(50) @Success 200 {object} []model.Scheduler @Failure 400 @Failure 404 @Failure 500 @Router /schedulers [get]
func (*Handlers) GetSecurityGroup ¶
@Summary Get SecurityGroup @Description Get SecurityGroup by id @Tags SecurityGroup @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.SecurityGroup @Failure 400 @Failure 404 @Failure 500 @Router /security-groups/{id} [get]
func (*Handlers) GetSecurityGroups ¶
@Summary Get SecurityGroups @Description Get SecurityGroups @Tags SecurityGroup @Accept json @Produce json @Param page query int true "current page" default(0) @Param per_page query int true "return max item count, default 10, max 50" default(10) minimum(2) maximum(50) @Success 200 {object} []model.SecurityGroup @Failure 400 @Failure 404 @Failure 500 @Router /security-groups [get]
func (*Handlers) GetUser ¶
@Summary Get User @Description Get User by id @Tags User @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.User @Failure 400 @Failure 404 @Failure 500 @Router /users/{id} [get]
func (*Handlers) OauthSignin ¶
@Summary Oauth Signin @Description oauth signin by json config @Tags User @Accept json @Produce json @Param name path string true "name" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /user/signin/{name} [get]
func (*Handlers) OauthSigninCallback ¶
func (h *Handlers) OauthSigninCallback(j *jwt.GinJWTMiddleware) func(*gin.Context)
@Summary Oauth Signin Callback @Description oauth signin callback by json config @Tags Oauth @Param name path string true "name" @Param code query string true "code" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /user/signin/{name}/callback [get]
func (*Handlers) ResetPassword ¶
@Summary Reset Password For User @Description reset password by json config @Tags User @Accept json @Produce json @Param User body types.ResetPasswordRequest true "User" @Success 200 @Failure 400 @Failure 500 @Router /users/:id/reset_password [post]
func (*Handlers) SignUp ¶
@Summary SignUp user @Description signup by json config @Tags User @Accept json @Produce json @Param User body types.SignUpRequest true "User" @Success 200 {object} model.User @Failure 400 @Failure 500 @Router /user/signup [post]
func (*Handlers) UpdateCDN ¶
@Summary Update CDN @Description Update by json config @Tags CDN @Accept json @Produce json @Param id path string true "id" @Param CDN body types.UpdateCDNRequest true "CDN" @Success 200 {object} model.CDN @Failure 400 @Failure 404 @Failure 500 @Router /cdns/{id} [patch]
func (*Handlers) UpdateCDNCluster ¶
@Summary Update CDNCluster @Description Update by json config @Tags CDNCluster @Accept json @Produce json @Param id path string true "id" @Param CDNCluster body types.UpdateCDNClusterRequest true "CDNCluster" @Success 200 {object} model.CDNCluster @Failure 400 @Failure 404 @Failure 500 @Router /cdn-clusters/{id} [patch]
func (*Handlers) UpdateOauth ¶
@Summary Update Oauth @Description Update by json config @Tags Oauth @Accept json @Produce json @Param id path string true "id" @Param Oauth body types.UpdateOauthRequest true "Oauth" @Success 200 {object} model.Oauth @Failure 400 @Failure 404 @Failure 500 @Router /oauth/{id} [patch]
func (*Handlers) UpdateScheduler ¶
@Summary Update Scheduler @Description Update by json config @Tags Scheduler @Accept json @Produce json @Param id path string true "id" @Param Scheduler body types.UpdateSchedulerRequest true "Scheduler" @Success 200 {object} model.Scheduler @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id} [patch]
func (*Handlers) UpdateSchedulerCluster ¶
@Summary Update SchedulerCluster @Description Update by json config @Tags SchedulerCluster @Accept json @Produce json @Param id path string true "id" @Param SchedulerCluster body types.UpdateSchedulerClusterRequest true "SchedulerCluster" @Success 200 {object} model.SchedulerCluster @Failure 400 @Failure 404 @Failure 500 @Router /scheduler-clusters/{id} [patch]
func (*Handlers) UpdateSecurityGroup ¶
@Summary Update SecurityGroup @Description Update by json config @Tags SecurityGroup @Accept json @Produce json @Param id path string true "id" @Param SecurityGroup body types.UpdateSecurityGroupRequest true "SecurityGroup" @Success 200 {object} model.SecurityGroup @Failure 400 @Failure 404 @Failure 500 @Router /security-groups/{id} [patch]