handlers

package
v2.0.8-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 New

func New(service service.Service) *Handlers

func (*Handlers) AddPermissionForRole

func (h *Handlers) AddPermissionForRole(ctx *gin.Context)

@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

func (h *Handlers) AddRoleToUser(ctx *gin.Context)

@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) AddSchedulerClusterToApplication added in v2.0.1

func (h *Handlers) AddSchedulerClusterToApplication(ctx *gin.Context)

@Summary Add Scheduler to Application @Description Add Scheduler to Application @Tags Application @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 /applications/{id}/scheduler-clusters/{scheduler_cluster_id} [put]

func (*Handlers) AddSchedulerClusterToSecurityGroup

func (h *Handlers) AddSchedulerClusterToSecurityGroup(ctx *gin.Context)

@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) AddSchedulerClusterToSeedPeerCluster added in v2.0.3

func (h *Handlers) AddSchedulerClusterToSeedPeerCluster(ctx *gin.Context)

@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

func (h *Handlers) AddSchedulerToSchedulerCluster(ctx *gin.Context)

@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) AddSecurityRuleToSecurityGroup added in v2.0.1

func (h *Handlers) AddSecurityRuleToSecurityGroup(ctx *gin.Context)

@Summary Add SecurityRule to SecurityGroup @Description Add SecurityRule to SecurityGroup @Tags SecurityGroup @Accept json @Produce json @Param id path string true "id" @Param security_rule_id path string true "security rule id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /security-groups/{id}/security-rules/{security_rule_id} [put]

func (*Handlers) AddSeedPeerClusterToApplication added in v2.0.3

func (h *Handlers) AddSeedPeerClusterToApplication(ctx *gin.Context)

@Summary Add SeedPeer to Application @Description Add SeedPeer to Application @Tags Application @Accept json @Produce json @Param id path string true "id" @Param seed_peer_cluster_id path string true "seed peer cluster id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /applications/{id}/seed-peer-clusters/{seed_peer_cluster_id} [put]

func (*Handlers) AddSeedPeerClusterToSecurityGroup added in v2.0.3

func (h *Handlers) AddSeedPeerClusterToSecurityGroup(ctx *gin.Context)

@Summary Add SeedPeer to SecurityGroup @Description Add SeedPeer to SecurityGroup @Tags SecurityGroup @Accept json @Produce json @Param id path string true "id" @Param seed_peer_cluster_id path string true "seed peer cluster id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /security-groups/{id}/seed-peer-clusters/{seed_peer_cluster_id} [put]

func (*Handlers) AddSeedPeerToSeedPeerCluster added in v2.0.3

func (h *Handlers) AddSeedPeerToSeedPeerCluster(ctx *gin.Context)

@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

func (h *Handlers) CreateApplication(ctx *gin.Context)

@Summary Create Application @Description Create by json config @Tags Application @Accept json @Produce json @Param Application body types.CreateApplicationRequest true "Application" @Success 200 {object} model.Application @Failure 400 @Failure 404 @Failure 500 @Router /applications [post]

func (*Handlers) CreateBucket added in v2.0.4

func (h *Handlers) CreateBucket(ctx *gin.Context)

@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) CreateConfig added in v2.0.1

func (h *Handlers) CreateConfig(ctx *gin.Context)

@Summary Create Config @Description Create by json config @Tags Config @Accept json @Produce json @Param Config body types.CreateConfigRequest true "Config" @Success 200 {object} model.Config @Failure 400 @Failure 404 @Failure 500 @Router /configs [post]

func (*Handlers) CreateJob added in v2.0.1

func (h *Handlers) CreateJob(ctx *gin.Context)

@Summary Create Job @Description Create by json config @Tags Job @Accept json @Produce json @Param Job body types.CreateJobRequest true "Job" @Success 200 {object} model.Job @Failure 400 @Failure 404 @Failure 500 @Router /jobs [post]

func (*Handlers) CreateModel added in v2.0.6

func (h *Handlers) CreateModel(ctx *gin.Context)

@Summary Create Model @Description Create by id @Tags Model @Accept json @Produce json @Param id path string true "id" @Param Model body types.CreateModelRequest true "Model" @Success 200 {object} types.Model @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id}/models [post]

func (*Handlers) CreateModelVersion added in v2.0.6

func (h *Handlers) CreateModelVersion(ctx *gin.Context)

@Summary Create Model Version @Description Create by id @Tags Model @Accept json @Produce json @Param id path string true "id" @Param model_id path string true "model_id" @Param ModelVersion body types.CreateModelVersionRequest true "ModelVersion" @Success 200 {object} types.ModelVersion @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id}/models/{model_id}/versions [post]

func (*Handlers) CreateOauth

func (h *Handlers) CreateOauth(ctx *gin.Context)

@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) CreateRole

func (h *Handlers) CreateRole(ctx *gin.Context)

@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

func (h *Handlers) CreateScheduler(ctx *gin.Context)

@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

func (h *Handlers) CreateSchedulerCluster(ctx *gin.Context)

@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

func (h *Handlers) CreateSecurityGroup(ctx *gin.Context)

@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) CreateSecurityRule added in v2.0.1

func (h *Handlers) CreateSecurityRule(ctx *gin.Context)

@Summary Create SecurityRule @Description Create by json config @Tags SecurityRule @Accept json @Produce json @Param SecurityRule body types.CreateSecurityRuleRequest true "SecurityRule" @Success 200 {object} model.SecurityRule @Failure 400 @Failure 404 @Failure 500 @Router /security-rules [post]

func (*Handlers) CreateSeedPeer added in v2.0.3

func (h *Handlers) CreateSeedPeer(ctx *gin.Context)

@Summary Create SeedPeer @Description Create by json config @Tags SeedPeer @Accept json @Produce json @Param SeedPeer body types.CreateSeedPeerRequest true "SeedPeer" @Success 200 {object} model.SeedPeer @Failure 400 @Failure 404 @Failure 500 @Router /seed-peers [post]

func (*Handlers) CreateSeedPeerCluster added in v2.0.3

func (h *Handlers) CreateSeedPeerCluster(ctx *gin.Context)

@Summary Create SeedPeerCluster @Description Create by json config @Tags SeedPeerCluster @Accept json @Produce json @Param SeedPeerCluster body types.CreateSeedPeerClusterRequest true "DNCluster" @Success 200 {object} model.SeedPeerCluster @Failure 400 @Failure 404 @Failure 500 @Router /seed-peer-clusters [post]

func (*Handlers) CreateV1Preheat added in v2.0.1

func (h *Handlers) CreateV1Preheat(ctx *gin.Context)

@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

func (h *Handlers) DeletePermissionForRole(ctx *gin.Context)

@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

func (h *Handlers) DeleteRoleForUser(ctx *gin.Context)

@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) DeleteSchedulerClusterToApplication added in v2.0.1

func (h *Handlers) DeleteSchedulerClusterToApplication(ctx *gin.Context)

@Summary Delete Scheduler to Application @Description Delete Scheduler to Application @Tags Application @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 /applications/{id}/scheduler-clusters/{scheduler_cluster_id} [delete]

func (*Handlers) DeleteSeedPeerClusterToApplication added in v2.0.3

func (h *Handlers) DeleteSeedPeerClusterToApplication(ctx *gin.Context)

@Summary Delete SeedPeer to Application @Description Delete SeedPeer to Application @Tags Application @Accept json @Produce json @Param id path string true "id" @Param seed_peer_cluster_id path string true "seed peer cluster id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /applications/{id}/seed-peer-clusters/{seed_peer_cluster_id} [delete]

func (*Handlers) DestroyApplication added in v2.0.1

func (h *Handlers) DestroyApplication(ctx *gin.Context)

@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

func (h *Handlers) DestroyBucket(ctx *gin.Context)

@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) DestroyConfig added in v2.0.1

func (h *Handlers) DestroyConfig(ctx *gin.Context)

@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

func (h *Handlers) DestroyJob(ctx *gin.Context)

@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) DestroyModel added in v2.0.6

func (h *Handlers) DestroyModel(ctx *gin.Context)

@Summary Destroy Model @Description Destroy by id @Tags Model @Accept json @Produce json @Param id path string true "id" @Param model_id path string true "model_id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id}/models/{model_id} [delete]

func (*Handlers) DestroyModelVersion added in v2.0.6

func (h *Handlers) DestroyModelVersion(ctx *gin.Context)

@Summary Destroy Model Version @Description Destroy by id @Tags Model @Accept json @Produce json @Param id path string true "id" @Param model_id path string true "model_id" @Param version_id path string true "version_id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id}/models/{model_id}/versions/{version_id} [delete]

func (*Handlers) DestroyOauth

func (h *Handlers) DestroyOauth(ctx *gin.Context)

@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

func (h *Handlers) DestroyRole(ctx *gin.Context)

@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

func (h *Handlers) DestroyScheduler(ctx *gin.Context)

@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

func (h *Handlers) DestroySchedulerCluster(ctx *gin.Context)

@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

func (h *Handlers) DestroySecurityGroup(ctx *gin.Context)

@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) DestroySecurityRule added in v2.0.1

func (h *Handlers) DestroySecurityRule(ctx *gin.Context)

@Summary Destroy SecurityRule @Description Destroy by id @Tags SecurityRule @Accept json @Produce json @Param id path string true "id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /securityRules/{id} [delete]

func (*Handlers) DestroySecurityRuleToSecurityGroup added in v2.0.1

func (h *Handlers) DestroySecurityRuleToSecurityGroup(ctx *gin.Context)

@Summary Destroy SecurityRule to SecurityGroup @Description Destroy SecurityRule to SecurityGroup @Tags SecurityGroup @Accept json @Produce json @Param id path string true "id" @Param security_rule_id path string true "security rule id" @Success 200 @Failure 400 @Failure 404 @Failure 500 @Router /security-groups/{id}/security-rules/{security_rule_id} [delete]

func (*Handlers) DestroySeedPeer added in v2.0.3

func (h *Handlers) DestroySeedPeer(ctx *gin.Context)

@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

func (h *Handlers) DestroySeedPeerCluster(ctx *gin.Context)

@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

func (h *Handlers) GetApplication(ctx *gin.Context)

@Summary Get Application @Description Get Application by id @Tags Application @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.Application @Failure 400 @Failure 404 @Failure 500 @Router /applications/{id} [get]

func (*Handlers) GetApplications added in v2.0.1

func (h *Handlers) GetApplications(ctx *gin.Context)

@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} []model.Application @Failure 400 @Failure 404 @Failure 500 @Router /applications [get]

func (*Handlers) GetBucket added in v2.0.4

func (h *Handlers) GetBucket(ctx *gin.Context)

@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

func (h *Handlers) GetBuckets(ctx *gin.Context)

@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) GetConfig added in v2.0.1

func (h *Handlers) GetConfig(ctx *gin.Context)

@Summary Get Config @Description Get Config by id @Tags Config @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.Config @Failure 400 @Failure 404 @Failure 500 @Router /configs/{id} [get]

func (*Handlers) GetConfigs added in v2.0.1

func (h *Handlers) GetConfigs(ctx *gin.Context)

@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} []model.Config @Failure 400 @Failure 404 @Failure 500 @Router /configs [get]

func (*Handlers) GetHealth

func (h *Handlers) GetHealth(ctx *gin.Context)

@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

func (h *Handlers) GetJob(ctx *gin.Context)

@Summary Get Job @Description Get Job by id @Tags Job @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.Job @Failure 400 @Failure 404 @Failure 500 @Router /jobs/{id} [get]

func (*Handlers) GetJobs added in v2.0.1

func (h *Handlers) GetJobs(ctx *gin.Context)

@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} []model.Job @Failure 400 @Failure 404 @Failure 500 @Router /jobs [get]

func (*Handlers) GetModel added in v2.0.6

func (h *Handlers) GetModel(ctx *gin.Context)

@Summary Get Model @Description Get Model by id @Tags Model @Accept json @Produce json @Param id path string true "id" @Param model_id path string true "model_id" @Success 200 {object} types.Model @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id}/models/{model_id} [get]

func (*Handlers) GetModelVersion added in v2.0.6

func (h *Handlers) GetModelVersion(ctx *gin.Context)

@Summary Get Model Version @Description Get Model Version by id @Tags Model @Accept json @Produce json @Param id path string true "id" @Param model_id path string true "model_id" @Param version_id path string true "version_id" @Success 200 {object} types.ModelVersion @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id}/models/{model_id}/versions/{version_id} [get]

func (*Handlers) GetModelVersions added in v2.0.6

func (h *Handlers) GetModelVersions(ctx *gin.Context)

@Summary Get Model Versions @Description Get Model Versions by id @Tags Model @Accept json @Produce json @Param id path string true "id" @Param model_id path string true "model_id" @Success 200 {object} []types.ModelVersion @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id}/models/{model_id}/versions [get]

func (*Handlers) GetModels added in v2.0.6

func (h *Handlers) GetModels(ctx *gin.Context)

@Summary Get Models @Description Get Models @Tags Model @Accept json @Produce json @Param id path string true "id" @Success 200 {object} []types.Model @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{id}/models [get]

func (*Handlers) GetOauth

func (h *Handlers) GetOauth(ctx *gin.Context)

@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

func (h *Handlers) GetOauths(ctx *gin.Context)

@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) GetPeers added in v2.0.3

func (h *Handlers) GetPeers(ctx *gin.Context)

@Summary Get Peers @Description Get Peers @Tags Peer @Accept json @Produce json @Success 200 {object} []string @Failure 400 @Failure 404 @Failure 500 @Router /peers [get]

func (*Handlers) GetPermissions

func (h *Handlers) GetPermissions(g *gin.Engine) func(ctx *gin.Context)

@Summary Get Permissions @Description Get Permissions @Tags Permission @Produce json @Success 200 {object} []rbac.Permission @Failure 400 @Failure 500 @Router /permissions [get]

func (*Handlers) GetRole

func (h *Handlers) GetRole(ctx *gin.Context)

@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

func (h *Handlers) GetRoles(ctx *gin.Context)

@Summary Get Roles @Description Get roles @Tags Role @Accept json @Produce json @Success 200 @Failure 400 @Failure 500 @Router /roles [get]

func (*Handlers) GetRolesForUser

func (h *Handlers) GetRolesForUser(ctx *gin.Context)

@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

func (h *Handlers) GetScheduler(ctx *gin.Context)

@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

func (h *Handlers) GetSchedulerCluster(ctx *gin.Context)

@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

func (h *Handlers) GetSchedulerClusters(ctx *gin.Context)

@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

func (h *Handlers) GetSchedulers(ctx *gin.Context)

@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

func (h *Handlers) GetSecurityGroup(ctx *gin.Context)

@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

func (h *Handlers) GetSecurityGroups(ctx *gin.Context)

@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) GetSecurityRule added in v2.0.1

func (h *Handlers) GetSecurityRule(ctx *gin.Context)

@Summary Get SecurityRule @Description Get SecurityRule by id @Tags SecurityRule @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.SecurityRule @Failure 400 @Failure 404 @Failure 500 @Router /security-rules/{id} [get]

func (*Handlers) GetSecurityRules added in v2.0.1

func (h *Handlers) GetSecurityRules(ctx *gin.Context)

@Summary Get SecurityRules @Description Get SecurityRules @Tags SecurityRule @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.SecurityRule @Failure 400 @Failure 404 @Failure 500 @Router /security-rules [get]

func (*Handlers) GetSeedPeer added in v2.0.3

func (h *Handlers) GetSeedPeer(ctx *gin.Context)

@Summary Get SeedPeer @Description Get SeedPeer by id @Tags SeedPeer @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.SeedPeer @Failure 400 @Failure 404 @Failure 500 @Router /seed-peers/{id} [get]

func (*Handlers) GetSeedPeerCluster added in v2.0.3

func (h *Handlers) GetSeedPeerCluster(ctx *gin.Context)

@Summary Get SeedPeerCluster @Description Get SeedPeerCluster by id @Tags SeedPeerCluster @Accept json @Produce json @Param id path string true "id" @Success 200 {object} model.SeedPeerCluster @Failure 400 @Failure 404 @Failure 500 @Router /seed-peer-clusters/{id} [get]

func (*Handlers) GetSeedPeerClusters added in v2.0.3

func (h *Handlers) GetSeedPeerClusters(ctx *gin.Context)

@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} []model.SeedPeerCluster @Failure 400 @Failure 404 @Failure 500 @Router /seed-peer-clusters [get]

func (*Handlers) GetSeedPeers added in v2.0.3

func (h *Handlers) GetSeedPeers(ctx *gin.Context)

@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} []model.SeedPeer @Failure 400 @Failure 404 @Failure 500 @Router /seed-peers [get]

func (*Handlers) GetUser

func (h *Handlers) GetUser(ctx *gin.Context)

@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) GetUsers added in v2.0.1

func (h *Handlers) GetUsers(ctx *gin.Context)

@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} []model.User @Failure 400 @Failure 404 @Failure 500 @Router /users [get]

func (*Handlers) GetV1Preheat added in v2.0.1

func (h *Handlers) GetV1Preheat(ctx *gin.Context)

@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

func (h *Handlers) OauthSignin(ctx *gin.Context)

@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

func (h *Handlers) ResetPassword(ctx *gin.Context)

@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

func (h *Handlers) SignUp(ctx *gin.Context)

@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) UpdateApplication added in v2.0.1

func (h *Handlers) UpdateApplication(ctx *gin.Context)

@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} model.Application @Failure 400 @Failure 404 @Failure 500 @Router /applications/{id} [patch]

func (*Handlers) UpdateConfig added in v2.0.1

func (h *Handlers) UpdateConfig(ctx *gin.Context)

@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} model.Config @Failure 400 @Failure 404 @Failure 500 @Router /configs/{id} [patch]

func (*Handlers) UpdateJob added in v2.0.1

func (h *Handlers) UpdateJob(ctx *gin.Context)

@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} model.Job @Failure 400 @Failure 404 @Failure 500 @Router /jobs/{id} [patch]

func (*Handlers) UpdateModel added in v2.0.6

func (h *Handlers) UpdateModel(ctx *gin.Context)

@Summary Update Model @Description Update by json config @Tags Model @Accept json @Produce json @Param id path string true "id" @Param model_id path string true "model_id" @Param Model body types.UpdateModelRequest true "Model" @Success 200 {object} types.Model @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{scheduler_id}/models/{model_id} [patch]

func (*Handlers) UpdateModelVersion added in v2.0.6

func (h *Handlers) UpdateModelVersion(ctx *gin.Context)

@Summary Update Model Version @Description Update by json config @Tags Model @Accept json @Produce json @Param id path string true "id" @Param model_id path string true "model_id" @Param version_id path string true "version_id" @Param ModelVersion body types.UpdateModelVersionRequest true "ModelVersion" @Success 200 {object} types.ModelVersion @Failure 400 @Failure 404 @Failure 500 @Router /schedulers/{scheduler_id}/models/{model_id}/versions/{version_id} [patch]

func (*Handlers) UpdateOauth

func (h *Handlers) UpdateOauth(ctx *gin.Context)

@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

func (h *Handlers) UpdateScheduler(ctx *gin.Context)

@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

func (h *Handlers) UpdateSchedulerCluster(ctx *gin.Context)

@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

func (h *Handlers) UpdateSecurityGroup(ctx *gin.Context)

@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]

func (*Handlers) UpdateSecurityRule added in v2.0.1

func (h *Handlers) UpdateSecurityRule(ctx *gin.Context)

@Summary Update SecurityRule @Description Update by json config @Tags SecurityRule @Accept json @Produce json @Param id path string true "id" @Param SecurityRule body types.UpdateSecurityRuleRequest true "SecurityRule" @Success 200 {object} model.SecurityRule @Failure 400 @Failure 404 @Failure 500 @Router /security-rules/{id} [patch]

func (*Handlers) UpdateSeedPeer added in v2.0.3

func (h *Handlers) UpdateSeedPeer(ctx *gin.Context)

@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} model.SeedPeer @Failure 400 @Failure 404 @Failure 500 @Router /seed-peers/{id} [patch]

func (*Handlers) UpdateSeedPeerCluster added in v2.0.3

func (h *Handlers) UpdateSeedPeerCluster(ctx *gin.Context)

@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} model.SeedPeerCluster @Failure 400 @Failure 404 @Failure 500 @Router /seed-peer-clusters/{id} [patch]

func (*Handlers) UpdateUser added in v2.0.2

func (h *Handlers) UpdateUser(ctx *gin.Context)

@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} model.User @Failure 400 @Failure 404 @Failure 500 @Router /users/{id} [patch]

Jump to

Keyboard shortcuts

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