Documentation ¶
Index ¶
- type Handlers
- func (h *Handlers) AddPermissionForRole(ctx *gin.Context)
- func (h *Handlers) AddRoleToUser(ctx *gin.Context)
- func (h *Handlers) AddSchedulerClusterToSeedPeerCluster(ctx *gin.Context)
- func (h *Handlers) AddSchedulerToSchedulerCluster(ctx *gin.Context)
- func (h *Handlers) AddSeedPeerToSeedPeerCluster(ctx *gin.Context)
- func (h *Handlers) CreateApplication(ctx *gin.Context)
- func (h *Handlers) CreateBucket(ctx *gin.Context)
- func (h *Handlers) CreateCluster(ctx *gin.Context)
- func (h *Handlers) CreateConfig(ctx *gin.Context)
- func (h *Handlers) CreateJob(ctx *gin.Context)
- func (h *Handlers) CreateOauth(ctx *gin.Context)
- func (h *Handlers) CreatePeer(ctx *gin.Context)
- func (h *Handlers) CreatePersonalAccessToken(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) CreateSeedPeer(ctx *gin.Context)
- func (h *Handlers) CreateSeedPeerCluster(ctx *gin.Context)
- func (h *Handlers) CreateV1Preheat(ctx *gin.Context)
- func (h *Handlers) DeletePermissionForRole(ctx *gin.Context)
- func (h *Handlers) DeleteRoleForUser(ctx *gin.Context)
- func (h *Handlers) DestroyApplication(ctx *gin.Context)
- func (h *Handlers) DestroyBucket(ctx *gin.Context)
- func (h *Handlers) DestroyCluster(ctx *gin.Context)
- func (h *Handlers) DestroyConfig(ctx *gin.Context)
- func (h *Handlers) DestroyJob(ctx *gin.Context)
- func (h *Handlers) DestroyOauth(ctx *gin.Context)
- func (h *Handlers) DestroyPeer(ctx *gin.Context)
- func (h *Handlers) DestroyPersonalAccessToken(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) DestroySeedPeer(ctx *gin.Context)
- func (h *Handlers) DestroySeedPeerCluster(ctx *gin.Context)
- func (h *Handlers) GetApplication(ctx *gin.Context)
- func (h *Handlers) GetApplications(ctx *gin.Context)
- func (h *Handlers) GetBucket(ctx *gin.Context)
- func (h *Handlers) GetBuckets(ctx *gin.Context)
- func (h *Handlers) GetCluster(ctx *gin.Context)
- func (h *Handlers) GetClusters(ctx *gin.Context)
- func (h *Handlers) GetConfig(ctx *gin.Context)
- func (h *Handlers) GetConfigs(ctx *gin.Context)
- func (h *Handlers) GetHealth(ctx *gin.Context)
- func (h *Handlers) GetJob(ctx *gin.Context)
- func (h *Handlers) GetJobs(ctx *gin.Context)
- func (h *Handlers) GetOauth(ctx *gin.Context)
- func (h *Handlers) GetOauths(ctx *gin.Context)
- func (h *Handlers) GetPeer(ctx *gin.Context)
- func (h *Handlers) GetPeers(ctx *gin.Context)
- func (h *Handlers) GetPermissions(g *gin.Engine) func(ctx *gin.Context)
- func (h *Handlers) GetPersonalAccessToken(ctx *gin.Context)
- func (h *Handlers) GetPersonalAccessTokens(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) GetSchedulerFeatures(ctx *gin.Context)
- func (h *Handlers) GetSchedulers(ctx *gin.Context)
- func (h *Handlers) GetSeedPeer(ctx *gin.Context)
- func (h *Handlers) GetSeedPeerCluster(ctx *gin.Context)
- func (h *Handlers) GetSeedPeerClusters(ctx *gin.Context)
- func (h *Handlers) GetSeedPeers(ctx *gin.Context)
- func (h *Handlers) GetUser(ctx *gin.Context)
- func (h *Handlers) GetUsers(ctx *gin.Context)
- func (h *Handlers) GetV1Preheat(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) UpdateApplication(ctx *gin.Context)
- func (h *Handlers) UpdateCluster(ctx *gin.Context)
- func (h *Handlers) UpdateConfig(ctx *gin.Context)
- func (h *Handlers) UpdateJob(ctx *gin.Context)
- func (h *Handlers) UpdateOauth(ctx *gin.Context)
- func (h *Handlers) UpdatePersonalAccessToken(ctx *gin.Context)
- func (h *Handlers) UpdateScheduler(ctx *gin.Context)
- func (h *Handlers) UpdateSchedulerCluster(ctx *gin.Context)
- func (h *Handlers) UpdateSeedPeer(ctx *gin.Context)
- func (h *Handlers) UpdateSeedPeerCluster(ctx *gin.Context)
- func (h *Handlers) UpdateUser(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
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) AddSchedulerClusterToSeedPeerCluster ¶ added in v2.0.3
@Summary Add SchedulerCluster to SeedPeerCluster @Description Add SchedulerCluster to SeedPeerCluster @Tags SeedPeerCluster @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 /seed-peer-clusters/{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) AddSeedPeerToSeedPeerCluster ¶ added in v2.0.3
@Summary Add Instance to SeedPeerCluster @Description Add SeedPeer to SeedPeerCluster @Tags SeedPeerCluster @Accept json @Produce json @Param id path string true "id" @Param seed_peer_id path string true "seed peer id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /seed-peer-clusters/{id}/seed-peers/{seed_peer_id} [put]
func (*Handlers) CreateApplication ¶ added in v2.0.1
@Summary Create Application @Description Create by json config @Tags Application @Accept json @Produce json @Param Application body types.CreateApplicationRequest true "Application" @Success 200 {object} models.Application @Failure 400 @Failure 404 @Failure 500 @Router /applications [post]
func (*Handlers) CreateBucket ¶ added in v2.0.4
@Summary Create Bucket @Description Create by json bucket @Tags Bucket @Accept json @Produce json @Param Bucket body types.CreateBucketRequest true "Bucket" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /buckets [post]
func (*Handlers) CreateCluster ¶ added in v2.0.30
@Summary Create Cluster @Description Create by json config @Tags Cluster @Accept json @Produce json @Param Cluster body types.CreateClusterRequest true "Cluster" @Success 200 {object} types.CreateClusterResponse @Failure 400 @Failure 404 @Failure 500 @Router /clusters [post]
func (*Handlers) CreateConfig ¶ added in v2.0.1
@Summary Create Config @Description Create by json config @Tags Config @Accept json @Produce json @Param Config body types.CreateConfigRequest true "Config" @Success 200 {object} models.Config @Failure 400 @Failure 404 @Failure 500 @Router /configs [post]
func (*Handlers) CreateJob ¶ added in v2.0.1
@Summary Create Job @Description Create by json config @Tags Job @Accept json @Produce json @Param Job body types.CreateJobRequest true "Job" @Success 200 {object} models.Job @Failure 400 @Failure 404 @Failure 500 @Router /jobs [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} models.Oauth @Failure 400 @Failure 404 @Failure 500 @Router /oauth [post]
func (*Handlers) CreatePeer ¶ added in v2.0.30
@Summary Create Peer @Description Create by json config @Tags Peer @Accept json @Produce json @Param Peer body types.CreatePeerRequest true "Peer" @Success 200 {object} models.Peer @Failure 400 @Failure 404 @Failure 500 @Router /peers [post]
func (*Handlers) CreatePersonalAccessToken ¶ added in v2.0.30
@Summary Create PersonalAccessToken @Description Create by json config @Tags PersonalAccessToken @Accept json @Produce json @Param PersonalAccessToken body types.CreatePersonalAccessTokenRequest true "PersonalAccessToken" @Success 200 {object} models.PersonalAccessToken @Failure 400 @Failure 404 @Failure 500 @Router /personal-access-tokens [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} models.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} models.SchedulerCluster @Failure 400 @Failure 404 @Failure 500 @Router /scheduler-clusters [post]
func (*Handlers) CreateSeedPeer ¶ added in v2.0.3
@Summary Create SeedPeer @Description Create by json config @Tags SeedPeer @Accept json @Produce json @Param SeedPeer body types.CreateSeedPeerRequest true "SeedPeer" @Success 200 {object} models.SeedPeer @Failure 400 @Failure 404 @Failure 500 @Router /seed-peers [post]
func (*Handlers) CreateSeedPeerCluster ¶ added in v2.0.3
@Summary Create SeedPeerCluster @Description Create by json config @Tags SeedPeerCluster @Accept json @Produce json @Param SeedPeerCluster body types.CreateSeedPeerClusterRequest true "DNCluster" @Success 200 {object} models.SeedPeerCluster @Failure 400 @Failure 404 @Failure 500 @Router /seed-peer-clusters [post]
func (*Handlers) CreateV1Preheat ¶ added in v2.0.1
@Summary Create V1 Preheat @Description Create by json config @Tags Preheat @Accept json @Produce json @Param Preheat body types.CreateV1PreheatRequest true "Preheat" @Success 200 {object} types.CreateV1PreheatResponse @Failure 400 @Failure 404 @Failure 500 @Router /preheats [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) DestroyApplication ¶ added in v2.0.1
@Summary Destroy Application @Description Destroy by id @Tags Application @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /applications/{id} [delete]
func (*Handlers) DestroyBucket ¶ added in v2.0.4
@Summary Destroy Bucket @Description Destroy by id @Tags Bucket @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /buckets/{id} [delete]
func (*Handlers) DestroyCluster ¶ added in v2.0.30
@Summary Destroy Cluster @Description Destroy by id @Tags Cluster @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /clusters/{id} [delete]
func (*Handlers) DestroyConfig ¶ added in v2.0.1
@Summary Destroy Config @Description Destroy by id @Tags Config @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /configs/{id} [delete]
func (*Handlers) DestroyJob ¶ added in v2.0.1
@Summary Destroy Job @Description Destroy by id @Tags Job @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /jobs/{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) DestroyPeer ¶ added in v2.0.30
@Summary Destroy Peer @Description Destroy by id @Tags Peer @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /peers/{id} [delete]
func (*Handlers) DestroyPersonalAccessToken ¶ added in v2.0.30
@Summary Destroy PersonalAccessToken @Description Destroy by id @Tags PersonalAccessToken @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /personal-access-tokens/{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) DestroySeedPeer ¶ added in v2.0.3
@Summary Destroy SeedPeer @Description Destroy by id @Tags SeedPeer @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /seed-peers/{id} [delete]
func (*Handlers) DestroySeedPeerCluster ¶ added in v2.0.3
@Summary Destroy SeedPeerCluster @Description Destroy by id @Tags SeedPeerCluster @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /seed-peer-clusters/{id} [delete]
func (*Handlers) GetApplication ¶ added in v2.0.1
@Summary Get Application @Description Get Application by id @Tags Application @Accept json @Produce json @Param id path string true "id" @Success 200 {object} models.Application @Failure 400 @Failure 404 @Failure 500 @Router /applications/{id} [get]
func (*Handlers) GetApplications ¶ added in v2.0.1
@Summary Get Applications @Description Get Applications @Tags Application @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} []models.Application @Failure 400 @Failure 404 @Failure 500 @Router /applications [get]
func (*Handlers) GetBucket ¶ added in v2.0.4
@Summary Get Bucket @Description Get Bucket by id @Tags Bucket @Accept json @Produce json @Param id path string true "id" @Success 200 {object} objectstorage.BucketMetadata @Failure 400 @Failure 404 @Failure 500 @Router /buckets/{id} [get]
func (*Handlers) GetBuckets ¶ added in v2.0.4
@Summary Get Buckets @Description Get Buckets @Tags Bucket @Accept json @Produce json @Success 200 {object} []objectstorage.BucketMetadata @Failure 400 @Failure 404 @Failure 500 @Router /buckets [get]
func (*Handlers) GetCluster ¶ added in v2.0.30
@Summary Get Cluster @Description Get Cluster by id @Tags Cluster @Accept json @Produce json @Param id path string true "id" @Success 200 {object} types.GetClusterResponse @Failure 400 @Failure 404 @Failure 500 @Router /clusters/{id} [get]
func (*Handlers) GetClusters ¶ added in v2.0.30
@Summary Get Clusters @Description Get Clusters @Tags Cluster @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} []types.GetClusterResponse @Failure 400 @Failure 404 @Failure 500 @Router /clusters [get]
func (*Handlers) GetConfig ¶ added in v2.0.1
@Summary Get Config @Description Get Config by id @Tags Config @Accept json @Produce json @Param id path string true "id" @Success 200 {object} models.Config @Failure 400 @Failure 404 @Failure 500 @Router /configs/{id} [get]
func (*Handlers) GetConfigs ¶ added in v2.0.1
@Summary Get Configs @Description Get Configs @Tags Config @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} []models.Config @Failure 400 @Failure 404 @Failure 500 @Router /configs [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) GetJob ¶ added in v2.0.1
@Summary Get Job @Description Get Job by id @Tags Job @Accept json @Produce json @Param id path string true "id" @Success 200 {object} models.Job @Failure 400 @Failure 404 @Failure 500 @Router /jobs/{id} [get]
func (*Handlers) GetJobs ¶ added in v2.0.1
@Summary Get Jobs @Description Get Jobs @Tags Job @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} []models.Job @Failure 400 @Failure 404 @Failure 500 @Router /jobs [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} models.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} []models.Oauth @Failure 400 @Failure 404 @Failure 500 @Router /oauth [get]
func (*Handlers) GetPeer ¶ added in v2.0.30
@Summary Get Peer @Description Get Peer by id @Tags Peer @Accept json @Produce json @Param id path string true "id" @Success 200 {object} models.Peer @Failure 400 @Failure 404 @Failure 500 @Router /peers/{id} [get]
func (*Handlers) GetPeers ¶ added in v2.0.3
@Summary Get Peers @Description Get Peers @Tags Peer @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} []models.Peer @Failure 400 @Failure 404 @Failure 500 @Router /peers [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) GetPersonalAccessToken ¶ added in v2.0.30
@Summary Get PersonalAccessToken @Description Get PersonalAccessToken by id @Tags PersonalAccessToken @Accept json @Produce json @Param id path string true "id" @Success 200 {object} models.PersonalAccessToken @Failure 400 @Failure 404 @Failure 500 @Router /personal-access-tokens/{id} [get]
func (*Handlers) GetPersonalAccessTokens ¶ added in v2.0.30
@Summary Get PersonalAccessTokens @Description Get PersonalAccessTokens @Tags PersonalAccessToken @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} []models.PersonalAccessToken @Failure 400 @Failure 404 @Failure 500 @Router /personal-access-tokens [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} models.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} models.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} []models.SchedulerCluster @Failure 400 @Failure 404 @Failure 500 @Router /scheduler-clusters [get]
func (*Handlers) GetSchedulerFeatures ¶ added in v2.1.57
@Summary Get Scheudler Features @Description Get Scheduler Features @Tags Scheduler Feature @Accept json @Produce json @Success 200 {array} string @Failure 400 @Failure 404 @Failure 500 @Router /scheduler-features [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} []models.Scheduler @Failure 400 @Failure 404 @Failure 500 @Router /schedulers [get]
func (*Handlers) GetSeedPeer ¶ added in v2.0.3
@Summary Get SeedPeer @Description Get SeedPeer by id @Tags SeedPeer @Accept json @Produce json @Param id path string true "id" @Success 200 {object} models.SeedPeer @Failure 400 @Failure 404 @Failure 500 @Router /seed-peers/{id} [get]
func (*Handlers) GetSeedPeerCluster ¶ added in v2.0.3
@Summary Get SeedPeerCluster @Description Get SeedPeerCluster by id @Tags SeedPeerCluster @Accept json @Produce json @Param id path string true "id" @Success 200 {object} models.SeedPeerCluster @Failure 400 @Failure 404 @Failure 500 @Router /seed-peer-clusters/{id} [get]
func (*Handlers) GetSeedPeerClusters ¶ added in v2.0.3
@Summary Get SeedPeerClusters @Description Get SeedPeerClusters @Tags SeedPeerCluster @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} []models.SeedPeerCluster @Failure 400 @Failure 404 @Failure 500 @Router /seed-peer-clusters [get]
func (*Handlers) GetSeedPeers ¶ added in v2.0.3
@Summary Get SeedPeers @Description Get SeedPeers @Tags SeedPeer @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} []models.SeedPeer @Failure 400 @Failure 404 @Failure 500 @Router /seed-peers [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} models.User @Failure 400 @Failure 404 @Failure 500 @Router /users/{id} [get]
func (*Handlers) GetUsers ¶ added in v2.0.1
@Summary Get Users @Description Get Users @Tags User @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} []models.User @Failure 400 @Failure 404 @Failure 500 @Router /users [get]
func (*Handlers) GetV1Preheat ¶ added in v2.0.1
@Summary Get V1 Preheat @Description Get Preheat by id @Tags Preheat @Accept json @Produce json @Param id path string true "id" @Success 200 {object} types.GetV1PreheatResponse @Failure 400 @Failure 404 @Failure 500 @Router /preheats/{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" @Param id path int true "id" @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} models.User @Failure 400 @Failure 500 @Router /user/signup [post]
func (*Handlers) UpdateApplication ¶ added in v2.0.1
@Summary Update Application @Description Update by json config @Tags Application @Accept json @Produce json @Param id path string true "id" @Param Application body types.UpdateApplicationRequest true "Application" @Success 200 {object} models.Application @Failure 400 @Failure 404 @Failure 500 @Router /applications/{id} [patch]
func (*Handlers) UpdateCluster ¶ added in v2.0.30
@Summary Update Cluster @Description Update by json config @Tags Cluster @Accept json @Produce json @Param id path string true "id" @Param Cluster body types.UpdateClusterRequest true "Cluster" @Success 200 {object} types.UpdateClusterResponse @Failure 400 @Failure 404 @Failure 500 @Router /clusters/{id} [patch]
func (*Handlers) UpdateConfig ¶ added in v2.0.1
@Summary Update Config @Description Update by json config @Tags Config @Accept json @Produce json @Param id path string true "id" @Param Config body types.UpdateConfigRequest true "Config" @Success 200 {object} models.Config @Failure 400 @Failure 404 @Failure 500 @Router /configs/{id} [patch]
func (*Handlers) UpdateJob ¶ added in v2.0.1
@Summary Update Job @Description Update by json config @Tags Job @Accept json @Produce json @Param id path string true "id" @Param Job body types.UpdateJobRequest true "Job" @Success 200 {object} models.Job @Failure 400 @Failure 404 @Failure 500 @Router /jobs/{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} models.Oauth @Failure 400 @Failure 404 @Failure 500 @Router /oauth/{id} [patch]
func (*Handlers) UpdatePersonalAccessToken ¶ added in v2.0.30
@Summary Update PersonalAccessToken @Description Update by json config @Tags PersonalAccessToken @Accept json @Produce json @Param id path string true "id" @Param PersonalAccessToken body types.UpdatePersonalAccessTokenRequest true "PersonalAccessToken" @Success 200 {object} models.PersonalAccessToken @Failure 400 @Failure 404 @Failure 500 @Router /personal-access-tokens/{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} models.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} models.SchedulerCluster @Failure 400 @Failure 404 @Failure 500 @Router /scheduler-clusters/{id} [patch]
func (*Handlers) UpdateSeedPeer ¶ added in v2.0.3
@Summary Update SeedPeer @Description Update by json config @Tags SeedPeer @Accept json @Produce json @Param id path string true "id" @Param SeedPeer body types.UpdateSeedPeerRequest true "SeedPeer" @Success 200 {object} models.SeedPeer @Failure 400 @Failure 404 @Failure 500 @Router /seed-peers/{id} [patch]
func (*Handlers) UpdateSeedPeerCluster ¶ added in v2.0.3
@Summary Update SeedPeerCluster @Description Update by json config @Tags SeedPeerCluster @Accept json @Produce json @Param id path string true "id" @Param SeedPeerCluster body types.UpdateSeedPeerClusterRequest true "SeedPeerCluster" @Success 200 {object} models.SeedPeerCluster @Failure 400 @Failure 404 @Failure 500 @Router /seed-peer-clusters/{id} [patch]
func (*Handlers) UpdateUser ¶ added in v2.0.2
@Summary Update User @Description Update by json config @Tags User @Accept json @Produce json @Param id path string true "id" @Param User body types.UpdateUserRequest true "User" @Success 200 {object} models.User @Failure 400 @Failure 404 @Failure 500 @Router /users/{id} [patch]