Documentation ¶
Index ¶
- Constants
- type AddPermissionForRoleRequest
- type AddRoleForUserParams
- type AddSchedulerClusterToSecurityGroupParams
- type AddSchedulerClusterToSeedPeerClusterParams
- type AddSchedulerToSchedulerClusterParams
- type AddSecurityRuleToSecurityGroupParams
- type AddSeedPeerClusterToSecurityGroupParams
- type AddSeedPeerToSeedPeerClusterParams
- type ApplicationParams
- type BucketParams
- type ConfigParams
- type CreateApplicationRequest
- type CreateBucketRequest
- type CreateConfigRequest
- type CreateJobRequest
- type CreateModelParams
- type CreateModelRequest
- type CreateModelVersionParams
- type CreateModelVersionRequest
- type CreateOauthRequest
- type CreatePreheatJobRequest
- type CreateRoleRequest
- type CreateSchedulerClusterRequest
- type CreateSchedulerRequest
- type CreateSecurityGroupRequest
- type CreateSecurityRuleRequest
- type CreateSeedPeerClusterRequest
- type CreateSeedPeerRequest
- type CreateV1PreheatRequest
- type CreateV1PreheatResponse
- type DeletePermissionForRoleRequest
- type DeleteRoleForUserParams
- type GetApplicationsQuery
- type GetConfigsQuery
- type GetJobsQuery
- type GetModelVersionsParams
- type GetModelsParams
- type GetOauthsQuery
- type GetSchedulerClustersQuery
- type GetSchedulersQuery
- type GetSecurityGroupsQuery
- type GetSecurityRulesQuery
- type GetSeedPeerClustersQuery
- type GetSeedPeersQuery
- type GetUsersQuery
- type GetV1PreheatResponse
- type JobParams
- type Model
- type ModelParams
- type ModelVersion
- type ModelVersionParams
- type OauthParams
- type OauthSigninCallbackParams
- type OauthSigninCallbackQuery
- type OauthSigninParams
- type Peer
- type PreheatArgs
- type PriorityConfig
- type ResetPasswordRequest
- type RoleParams
- type SchedulerClusterClientConfig
- type SchedulerClusterConfig
- type SchedulerClusterParams
- type SchedulerClusterScopes
- type SchedulerParams
- type SecurityGroupParams
- type SecurityRuleParams
- type SeedPeerClusterConfig
- type SeedPeerClusterParams
- type SeedPeerClusterScopes
- type SeedPeerParams
- type SignInRequest
- type SignUpRequest
- type URLPriorityConfig
- type UpdateApplicationRequest
- type UpdateConfigRequest
- type UpdateJobRequest
- type UpdateModelRequest
- type UpdateModelVersionRequest
- type UpdateOauthRequest
- type UpdateSchedulerClusterRequest
- type UpdateSchedulerRequest
- type UpdateSecurityGroupRequest
- type UpdateSecurityRuleRequest
- type UpdateSeedPeerClusterRequest
- type UpdateSeedPeerRequest
- type UpdateUserRequest
- type UserParams
- type V1PreheatParams
Constants ¶
View Source
const (
// IsBootConfigName represents server is boot.
IsBootConfigName = "is_boot"
)
View Source
const (
// ModelIDEvaluator is id of the evaluation model.
ModelIDEvaluator = "evaluator"
)
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 AddSchedulerClusterToSeedPeerClusterParams ¶ added in v2.0.3
type AddSecurityRuleToSecurityGroupParams ¶ added in v2.0.1
type AddSeedPeerClusterToSecurityGroupParams ¶ added in v2.0.3
type AddSeedPeerToSeedPeerClusterParams ¶ added in v2.0.3
type ApplicationParams ¶ added in v2.0.1
type ApplicationParams struct {
ID uint `uri:"id" binding:"required"`
}
type BucketParams ¶ added in v2.0.4
type BucketParams struct {
ID string `uri:"id" binding:"required"`
}
type ConfigParams ¶ added in v2.0.1
type ConfigParams struct {
ID uint `uri:"id" binding:"required"`
}
type CreateApplicationRequest ¶ added in v2.0.1
type CreateApplicationRequest struct { Name string `json:"name" binding:"required"` URL string `json:"url" binding:"required"` BIO string `json:"bio" binding:"omitempty"` Priority *PriorityConfig `json:"priority" binding:"required"` UserID uint `json:"user_id" binding:"required"` }
type CreateBucketRequest ¶ added in v2.0.4
type CreateBucketRequest struct {
Name string `json:"name" binding:"required"`
}
type CreateConfigRequest ¶ added in v2.0.1
type CreateJobRequest ¶ added in v2.0.1
type CreateJobRequest struct { BIO string `json:"bio" binding:"omitempty"` Type string `json:"type" binding:"required"` Args map[string]any `json:"args" binding:"omitempty"` Result map[string]any `json:"result" binding:"omitempty"` UserID uint `json:"user_id" binding:"omitempty"` SeedPeerClusterIDs []uint `json:"seed_peer_cluster_ids" binding:"omitempty"` SchedulerClusterIDs []uint `json:"scheduler_cluster_ids" binding:"omitempty"` }
type CreateModelParams ¶ added in v2.0.6
type CreateModelParams struct {
SchedulerID uint `uri:"id" binding:"required"`
}
type CreateModelRequest ¶ added in v2.0.6
type CreateModelVersionParams ¶ added in v2.0.6
type CreateModelVersionRequest ¶ added in v2.0.6
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 CreatePreheatJobRequest ¶ added in v2.0.1
type CreatePreheatJobRequest struct { BIO string `json:"bio" binding:"omitempty"` Type string `json:"type" binding:"required"` Args PreheatArgs `json:"args" binding:"omitempty"` Result map[string]any `json:"result" binding:"omitempty"` UserID uint `json:"user_id" binding:"omitempty"` SchedulerClusterIDs []uint `json:"scheduler_cluster_ids" 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 *SchedulerClusterConfig `json:"config" binding:"required"` ClientConfig *SchedulerClusterClientConfig `json:"client_config" binding:"required"` Scopes *SchedulerClusterScopes `json:"scopes" binding:"omitempty"` IsDefault bool `json:"is_default" binding:"omitempty"` SeedPeerClusterID uint `json:"seed_peer_cluster_id" binding:"omitempty"` SecurityGroupID uint `json:"security_group_id" binding:"omitempty"` }
type CreateSchedulerRequest ¶
type CreateSchedulerRequest struct { HostName string `json:"host_name" binding:"required"` IDC string `json:"idc" binding:"omitempty"` NetTopology string `json:"net_topology" binding:"omitempty"` Location string `json:"location" binding:"omitempty"` IP string `json:"ip" binding:"required"` Port int32 `json:"port" binding:"required"` SchedulerClusterID uint `json:"scheduler_cluster_id" binding:"required"` }
type CreateSecurityRuleRequest ¶ added in v2.0.1
type CreateSeedPeerClusterRequest ¶ added in v2.0.3
type CreateSeedPeerClusterRequest struct { Name string `json:"name" binding:"required"` BIO string `json:"bio" binding:"omitempty"` Config *SeedPeerClusterConfig `json:"config" binding:"required"` Scopes *SeedPeerClusterScopes `json:"scopes" binding:"omitempty"` IsDefault bool `json:"is_default" binding:"omitempty"` }
type CreateSeedPeerRequest ¶ added in v2.0.3
type CreateSeedPeerRequest struct { HostName string `json:"host_name" binding:"required"` Type string `json:"type" binding:"required,oneof=super strong weak"` IDC string `json:"idc" binding:"omitempty"` NetTopology string `json:"net_topology" binding:"omitempty"` 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"` ObjectStoragePort int32 `json:"object_storage_port" binding:"omitempty"` SeedPeerClusterID uint `json:"seed_peer_cluster_id" binding:"required"` }
type CreateV1PreheatRequest ¶ added in v2.0.1
type CreateV1PreheatResponse ¶ added in v2.0.1
type CreateV1PreheatResponse struct {
ID string `json:"id"`
}
type DeletePermissionForRoleRequest ¶
type DeletePermissionForRoleRequest struct {
rbac.Permission `json:",inline" binding:"required"`
}
type DeleteRoleForUserParams ¶
type GetApplicationsQuery ¶ added in v2.0.1
type GetConfigsQuery ¶ added in v2.0.1
type GetJobsQuery ¶ added in v2.0.1
type GetJobsQuery struct { Type string `form:"type" binding:"omitempty"` State string `form:"state" binding:"omitempty,oneof=PENDING RECEIVED STARTED RETRY SUCCESS FAILURE"` UserID uint `form:"user_id" binding:"omitempty"` Page int `form:"page" binding:"omitempty,gte=1"` PerPage int `form:"per_page" binding:"omitempty,gte=1,lte=50"` }
type GetModelVersionsParams ¶ added in v2.0.6
type GetModelsParams ¶ added in v2.0.6
type GetModelsParams struct {
SchedulerID uint `uri:"id" binding:"required"`
}
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"` State string `form:"state" binding:"omitempty,oneof=active inactive"` SchedulerClusterID uint `form:"scheduler_cluster_id" binding:"omitempty"` }
type GetSecurityGroupsQuery ¶
type GetSecurityRulesQuery ¶ added in v2.0.1
type GetSecurityRulesQuery struct { Page int `form:"page" binding:"omitempty,gte=1"` PerPage int `form:"per_page" binding:"omitempty,gte=1,lte=50"` Name string `form:"name" binding:"omitempty"` Domain string `form:"domain" binding:"omitempty"` ProxyDomain string `form:"proxy_domain" binding:"omitempty"` }
type GetSeedPeerClustersQuery ¶ added in v2.0.3
type GetSeedPeersQuery ¶ added in v2.0.3
type GetSeedPeersQuery struct { HostName string `form:"host_name" binding:"omitempty"` Type string `form:"type" binding:"omitempty,oneof=super strong weak"` 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"` ObjectStoragePort int32 `form:"object_storage_port" binding:"omitempty"` SeedPeerClusterID uint `form:"seed_peer_cluster_id" binding:"omitempty"` Page int `form:"page" binding:"omitempty,gte=1"` PerPage int `form:"per_page" binding:"omitempty,gte=1,lte=50"` State string `form:"state" binding:"omitempty,oneof=active inactive"` }
type GetUsersQuery ¶ added in v2.0.1
type GetUsersQuery struct { Name string `form:"name" binding:"omitempty"` Email string `form:"email" binding:"omitempty"` Location string `form:"location" binding:"omitempty"` State string `form:"state" binding:"omitempty"` Page int `form:"page" binding:"omitempty,gte=1"` PerPage int `form:"per_page" binding:"omitempty,gte=1,lte=50"` }
type GetV1PreheatResponse ¶ added in v2.0.1
type Model ¶ added in v2.0.6
type Model struct { ID string `json:"id" binding:"required"` Name string `json:"name" binding:"required"` VersionID string `json:"version_id" binding:"required"` SchedulerID uint `json:"scheduler_id" binding:"required"` Hostname string `json:"hostname" binding:"required"` IP string `json:"ip" binding:"required"` CreatedAt time.Time `json:"create_at" binding:"required"` UpdatedAt time.Time `json:"updated_at" binding:"required"` }
func (*Model) MarshalBinary ¶ added in v2.0.6
func (*Model) UnmarshalBinary ¶ added in v2.0.6
type ModelParams ¶ added in v2.0.6
type ModelVersion ¶ added in v2.0.6
type ModelVersion struct { ID string `json:"id" binding:"required"` MAE float64 `json:"mae" binding:"required"` MSE float64 `json:"mse" binding:"required"` RMSE float64 `json:"rmse" binding:"required"` R2 float64 `json:"r2" binding:"required"` Data []byte `json:"data" binding:"required"` CreatedAt time.Time `json:"create_at" binding:"required"` UpdatedAt time.Time `json:"updated_at" binding:"required"` }
func (*ModelVersion) MarshalBinary ¶ added in v2.0.6
func (mv *ModelVersion) MarshalBinary() ([]byte, error)
func (*ModelVersion) UnmarshalBinary ¶ added in v2.0.6
func (mv *ModelVersion) UnmarshalBinary(data []byte) error
type ModelVersionParams ¶ added in v2.0.6
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 Peer ¶ added in v2.0.3
type Peer struct { ID string `json:"id" binding:"required"` Hostname string `json:"hostname" binding:"required"` IP string `json:"ip" binding:"required"` }
func (Peer) MarshalBinary ¶ added in v2.0.3
type PreheatArgs ¶ added in v2.0.1
type PriorityConfig ¶ added in v2.0.9
type PriorityConfig struct { Value *int `yaml:"value" mapstructure:"value" json:"value" binding:"required,gte=0,lte=20"` URLs []URLPriorityConfig `yaml:"urls" mapstructure:"urls" json:"urls" binding:"omitempty"` }
type ResetPasswordRequest ¶
type RoleParams ¶
type RoleParams struct {
Role string `uri:"role" binding:"required"`
}
type SchedulerClusterClientConfig ¶ added in v2.0.1
type SchedulerClusterConfig ¶ added in v2.0.1
type SchedulerClusterParams ¶
type SchedulerClusterParams struct {
ID uint `uri:"id" binding:"required"`
}
type SchedulerClusterScopes ¶ added in v2.0.1
type SchedulerClusterScopes struct { IDC string `yaml:"idc" mapstructure:"idc" json:"idc" binding:"omitempty"` NetTopology string `yaml:"net_topology" mapstructure:"net_topology" json:"net_topology" binding:"omitempty"` Location string `yaml:"location" mapstructure:"location" json:"location" binding:"omitempty"` }
type SchedulerParams ¶
type SchedulerParams struct {
ID uint `uri:"id" binding:"required"`
}
type SecurityGroupParams ¶
type SecurityGroupParams struct {
ID uint `uri:"id" binding:"required"`
}
type SecurityRuleParams ¶ added in v2.0.1
type SecurityRuleParams struct {
ID uint `uri:"id" binding:"required"`
}
type SeedPeerClusterConfig ¶ added in v2.0.3
type SeedPeerClusterConfig struct {
LoadLimit uint32 `yaml:"loadLimit" mapstructure:"loadLimit" json:"load_limit" binding:"omitempty,gte=1,lte=5000"`
}
type SeedPeerClusterParams ¶ added in v2.0.3
type SeedPeerClusterParams struct {
ID uint `uri:"id" binding:"required"`
}
type SeedPeerClusterScopes ¶ added in v2.0.3
type SeedPeerClusterScopes struct { IDC string `yaml:"idc" mapstructure:"idc" json:"idc" binding:"omitempty"` NetTopology string `yaml:"net_topology" mapstructure:"net_topology" json:"net_topology" binding:"omitempty"` Location string `yaml:"location" mapstructure:"location" json:"location" binding:"omitempty"` }
type SeedPeerParams ¶ added in v2.0.3
type SeedPeerParams struct {
ID uint `uri:"id" binding:"required"`
}
type SignInRequest ¶
type SignUpRequest ¶
type URLPriorityConfig ¶ added in v2.0.9
type UpdateApplicationRequest ¶ added in v2.0.1
type UpdateApplicationRequest struct { Name string `json:"name" binding:"omitempty"` URL string `json:"url" binding:"omitempty"` BIO string `json:"bio" binding:"omitempty"` Priority *PriorityConfig `json:"priority" binding:"omitempty"` UserID uint `json:"user_id" binding:"required"` }
type UpdateConfigRequest ¶ added in v2.0.1
type UpdateJobRequest ¶ added in v2.0.1
type UpdateModelRequest ¶ added in v2.0.6
type UpdateModelVersionRequest ¶ added in v2.0.6
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 *SchedulerClusterConfig `json:"config" binding:"omitempty"` ClientConfig *SchedulerClusterClientConfig `json:"client_config" binding:"omitempty"` Scopes *SchedulerClusterScopes `json:"scopes" binding:"omitempty"` IsDefault bool `json:"is_default" binding:"omitempty"` SeedPeerClusterID uint `json:"seed_peer_cluster_id" binding:"omitempty"` SecurityGroupID uint `json:"security_group_id" binding:"omitempty"` }
type UpdateSchedulerRequest ¶
type UpdateSchedulerRequest struct { IDC string `json:"idc" binding:"omitempty"` NetTopology string `json:"net_topology" binding:"omitempty"` Location string `json:"location" 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 UpdateSecurityRuleRequest ¶ added in v2.0.1
type UpdateSeedPeerClusterRequest ¶ added in v2.0.3
type UpdateSeedPeerClusterRequest struct { Name string `json:"name" binding:"omitempty"` BIO string `json:"bio" binding:"omitempty"` Config *SeedPeerClusterConfig `json:"config" binding:"omitempty"` Scopes *SeedPeerClusterScopes `json:"scopes" binding:"omitempty"` IsDefault bool `json:"is_default" binding:"omitempty"` }
type UpdateSeedPeerRequest ¶ added in v2.0.3
type UpdateSeedPeerRequest struct { Type string `json:"type" binding:"omitempty,oneof=super strong weak"` IDC string `json:"idc" binding:"omitempty"` NetTopology string `json:"net_topology" 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"` ObjectStoragePort int32 `json:"object_storage_port" binding:"omitempty"` SeedPeerClusterID uint `json:"seed_peer_cluster_id" binding:"omitempty"` }
type UpdateUserRequest ¶ added in v2.0.2
type UserParams ¶
type UserParams struct {
ID uint `uri:"id" binding:"required"`
}
type V1PreheatParams ¶ added in v2.0.1
type V1PreheatParams struct {
ID string `uri:"id" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.