Documentation ¶
Index ¶
- type AddCDNClusterToSecurityGroupParams
- type AddCDNToCDNClusterParams
- type AddPermissionForRoleRequest
- type AddRoleForUserParams
- type AddSchedulerClusterToCDNClusterParams
- type AddSchedulerClusterToSecurityGroupParams
- type AddSchedulerToSchedulerClusterParams
- type CDNClusterParams
- type CDNParams
- type CreateCDNClusterRequest
- type CreateCDNRequest
- type CreateOauthRequest
- type CreatePreheatRequest
- type CreateRoleRequest
- type CreateSchedulerClusterRequest
- type CreateSchedulerRequest
- type CreateSecurityGroupRequest
- type DeletePermissionForRoleRequest
- type DeleteRoleForUserParams
- type GetCDNClustersQuery
- type GetCDNsQuery
- type GetOauthsQuery
- type GetSchedulerClustersQuery
- type GetSchedulersQuery
- type GetSecurityGroupsQuery
- type OauthParams
- type OauthSigninCallbackParams
- type OauthSigninCallbackQuery
- type OauthSigninParams
- type Preheat
- type PreheatParams
- type ResetPasswordRequest
- type RoleParams
- type SchedulerClusterParams
- type SchedulerParams
- type SecurityGroupParams
- type SignInRequest
- type SignUpRequest
- type UpdateCDNClusterRequest
- type UpdateCDNRequest
- type UpdateOauthRequest
- type UpdateSchedulerClusterRequest
- type UpdateSchedulerRequest
- type UpdateSecurityGroupRequest
- type UserParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPermissionForRoleRequest ¶
type AddPermissionForRoleRequest struct {
rbac.Permission `json:",inline" binding:"required"`
}
type AddRoleForUserParams ¶
type CDNClusterParams ¶
type CDNClusterParams struct {
ID uint `uri:"id" binding:"required"`
}
type CreateCDNClusterRequest ¶
type CreateCDNRequest ¶
type CreateCDNRequest struct { HostName string `json:"host_name" binding:"required"` IDC string `json:"idc" binding:"required"` Location string `json:"location" binding:"omitempty"` IP string `json:"ip" binding:"required"` Port int32 `json:"port" binding:"required"` DownloadPort int32 `json:"download_port" binding:"required"` CDNClusterID uint `json:"cdn_cluster_id" binding:"required"` }
type CreateOauthRequest ¶
type CreateOauthRequest struct { Name string `json:"name" binding:"required,oneof=github google"` BIO string `json:"bio" binding:"omitempty"` ClientID string `json:"client_id" binding:"required"` ClientSecret string `json:"client_secret" binding:"required"` RedirectURL string `json:"redirect_url" binding:"omitempty,url"` }
type CreatePreheatRequest ¶
type CreatePreheatRequest struct { SchedulerClusterID *uint `json:"scheduler_cluster_id" binding:"omitempty"` Type string `json:"type" binding:"required,oneof=image file"` URL string `json:"url" binding:"required"` Filter string `json:"filter" binding:"omitempty"` Headers map[string]string `json:"headers" binding:"omitempty"` }
type CreateRoleRequest ¶
type CreateRoleRequest struct { Role string `json:"role" binding:"required"` Permissions []rbac.Permission `json:"permissions" binding:"required"` }
type CreateSchedulerClusterRequest ¶
type CreateSchedulerClusterRequest struct { Name string `json:"name" binding:"required"` BIO string `json:"bio" binding:"omitempty"` Config map[string]interface{} `json:"config" binding:"required"` ClientConfig map[string]interface{} `json:"client_config" binding:"required"` Scopes map[string]interface{} `json:"scopes" binding:"omitempty"` IsDefault bool `json:"is_default" binding:"omitempty"` CDNClusterID uint `json:"cdn_cluster_id" binding:"omitempty"` SecurityGroupDomain string `json:"security_group_domain" binding:"omitempty"` }
type CreateSchedulerRequest ¶
type CreateSchedulerRequest struct { HostName string `json:"host_name" binding:"required"` VIPs string `json:"vips" binding:"omitempty"` IDC string `json:"idc" binding:"required"` Location string `json:"location" binding:"omitempty"` NetConfig map[string]interface{} `json:"net_config" binding:"omitempty"` IP string `json:"ip" binding:"required"` Port int32 `json:"port" binding:"required"` SchedulerClusterID uint `json:"scheduler_cluster_id" binding:"required"` }
type DeletePermissionForRoleRequest ¶
type DeletePermissionForRoleRequest struct {
rbac.Permission `json:",inline" binding:"required"`
}
type DeleteRoleForUserParams ¶
type GetCDNClustersQuery ¶
type GetCDNsQuery ¶
type GetCDNsQuery struct { HostName string `form:"host_name" binding:"omitempty"` IDC string `form:"idc" binding:"omitempty"` Location string `form:"location" binding:"omitempty"` IP string `form:"ip" binding:"omitempty"` Port int32 `form:"port" binding:"omitempty"` DownloadPort int32 `form:"download_port" binding:"omitempty"` CDNClusterID uint `form:"cdn_cluster_id" binding:"omitempty"` Page int `form:"page" binding:"omitempty,gte=1"` PerPage int `form:"per_page" binding:"omitempty,gte=1,lte=50"` Status string `form:"status" binding:"omitempty,oneof=active inactive"` }
type GetOauthsQuery ¶
type GetSchedulersQuery ¶
type GetSchedulersQuery struct { Page int `form:"page" binding:"omitempty,gte=1"` PerPage int `form:"per_page" binding:"omitempty,gte=1,lte=50"` HostName string `form:"host_name" binding:"omitempty"` IDC string `form:"idc" binding:"omitempty"` Location string `form:"location" binding:"omitempty"` IP string `form:"ip" binding:"omitempty"` Status string `form:"status" binding:"omitempty,oneof=active inactive"` SchedulerClusterID uint `form:"scheduler_cluster_id" binding:"omitempty"` }
type GetSecurityGroupsQuery ¶
type OauthParams ¶
type OauthParams struct {
ID uint `uri:"id" binding:"required"`
}
type OauthSigninCallbackParams ¶
type OauthSigninCallbackParams struct {
Name string `uri:"name" binding:"required"`
}
type OauthSigninCallbackQuery ¶
type OauthSigninCallbackQuery struct {
Code string `form:"code" binding:"required"`
}
type OauthSigninParams ¶
type OauthSigninParams struct {
Name string `uri:"name" binding:"required"`
}
type PreheatParams ¶
type PreheatParams struct {
ID string `uri:"id" binding:"required"`
}
type ResetPasswordRequest ¶
type RoleParams ¶
type RoleParams struct {
Role string `uri:"role" binding:"required"`
}
type SchedulerClusterParams ¶
type SchedulerClusterParams struct {
ID uint `uri:"id" binding:"required"`
}
type SchedulerParams ¶
type SchedulerParams struct {
ID uint `uri:"id" binding:"required"`
}
type SecurityGroupParams ¶
type SecurityGroupParams struct {
ID uint `uri:"id" binding:"required"`
}
type SignInRequest ¶
type SignUpRequest ¶
type UpdateCDNClusterRequest ¶
type UpdateCDNRequest ¶
type UpdateCDNRequest struct { IDC string `json:"idc" binding:"omitempty"` Location string `json:"location" binding:"omitempty"` IP string `json:"ip" binding:"omitempty"` Port int32 `json:"port" binding:"omitempty"` DownloadPort int32 `json:"download_port" binding:"omitempty"` CDNClusterID uint `json:"cdn_cluster_id" binding:"omitempty"` }
type UpdateOauthRequest ¶
type UpdateOauthRequest struct { Name string `json:"name" binding:"omitempty,oneof=github google"` BIO string `json:"bio" binding:"omitempty"` ClientID string `json:"client_id" binding:"omitempty"` ClientSecret string `json:"client_secret" binding:"omitempty"` RedirectURL string `json:"redirect_url" binding:"omitempty,url"` }
type UpdateSchedulerClusterRequest ¶
type UpdateSchedulerClusterRequest struct { Name string `json:"name" binding:"omitempty"` BIO string `json:"bio" binding:"omitempty"` Config map[string]interface{} `json:"config" binding:"omitempty"` ClientConfig map[string]interface{} `json:"client_config" binding:"omitempty"` Scopes map[string]interface{} `json:"scopes" binding:"omitempty"` IsDefault bool `json:"is_default" binding:"omitempty"` CDNClusterID uint `json:"cdn_cluster_id" binding:"omitempty"` SecurityGroupDomain string `json:"security_group_domain" binding:"omitempty"` }
type UpdateSchedulerRequest ¶
type UpdateSchedulerRequest struct { VIPs string `json:"vips" binding:"omitempty"` IDC string `json:"idc" binding:"omitempty"` Location string `json:"location" binding:"omitempty"` NetConfig map[string]interface{} `json:"net_config" binding:"omitempty"` IP string `json:"ip" binding:"omitempty"` Port int32 `json:"port" binding:"omitempty"` SchedulerID uint `json:"scheduler_id" binding:"omitempty"` SchedulerClusterID uint `json:"scheduler_cluster_id" binding:"omitempty"` }
type UserParams ¶
type UserParams struct {
ID uint `uri:"id" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.