Documentation ¶
Index ¶
- Constants
- Variables
- func CoverToConfig(name string, config string) interface{}
- func CoverToModel(dto MsgAccountDTO) model.MsgAccount
- func LoadApiserverFromConfig(ConfigContent string) (string, error)
- type AddMemberResponse
- type AddSubscribeResponse
- type BackupAccount
- type BackupAccountOp
- type BackupAccountRequest
- type BackupAccountUpdate
- type BindKubePI
- type BindResponse
- type Captcha
- type CheckConn
- type CisBatch
- type CisControl
- type CisControlList
- type CisReport
- type CisResult
- type CisResultList
- type CisTask
- type CisTaskCreate
- type CisTaskDetail
- type CisTest
- type CisTestList
- type CisTotals
- type CloudDatastore
- type CloudRegionResponse
- type CloudStorageRequest
- type CloudZoneRequest
- type CloudZoneResponse
- type Cluster
- type ClusterBackupFile
- type ClusterBackupFileCreate
- type ClusterBackupFileOp
- type ClusterBackupFileRestore
- type ClusterBackupStrategy
- type ClusterBackupStrategyRequest
- type ClusterBatch
- type ClusterCreate
- type ClusterGrade
- type ClusterHealth
- type ClusterHealthHook
- type ClusterImport
- type ClusterInfo
- type ClusterLoad
- type ClusterLoadInfo
- type ClusterManifest
- type ClusterManifestGroup
- type ClusterManifestUpdate
- type ClusterMember
- type ClusterMemberCreate
- type ClusterNode
- type ClusterPage
- type ClusterRecoverItem
- type ClusterRelation
- type ClusterResource
- type ClusterResourceCreate
- type ClusterSecret
- type ClusterStorageProvisioner
- type ClusterStorageProvisionerBatch
- type ClusterStorageProvisionerCreation
- type ClusterStorageProvisionerLoad
- type ClusterStorageProvisionerSync
- type ClusterTool
- type ClusterUpgrade
- type ClusterWithEndpoint
- type Component
- type ComponentCreate
- type ComponentPage
- type ComponentSync
- type Cordon
- type CreateDemo
- type Credential
- type CredentialBatchOp
- type CredentialCreate
- type CredentialOfHostCreate
- type CredentialPage
- type CredentialUpdate
- type Dashboard
- type Demo
- type DeploymentSearch
- type DingTalkConfig
- type EmailConfig
- type Endpoint
- type Evict
- type ExportPoint
- type Host
- type HostCreate
- type HostOp
- type HostPage
- type HostSync
- type HostUptate
- type ImportHostResponse
- type ImportRequest
- type ImportResult
- type Ip
- type IpCreate
- type IpOp
- type IpPool
- type IpPoolCreate
- type IpPoolOp
- type IpUpdate
- type IsClusterNameExist
- type LdapLogin
- type LdapResult
- type LdapSetting
- type LdapUser
- type License
- type LicenseInfo
- type LoginCredential
- type Logs
- type Metadata
- type Metric
- type MetricData
- type MetricValue
- type MetricValues
- type MsgAccountDTO
- type MsgSubConfig
- type MsgSubscribeDTO
- type MsgSubscribeUserDTO
- type MultiClusterRepository
- type MultiClusterRepositoryBatch
- type MultiClusterRepositoryCreateRequest
- type MultiClusterRepositoryUpdateRequest
- type MultiClusterSyncClusterLog
- type MultiClusterSyncLog
- type MultiClusterSyncLogDetail
- type NameVersion
- type NamespaceResult
- type NamespaceResultDetail
- type Node
- type NodeBatch
- type NodeCreate
- type NodePage
- type NodesFromK8s
- type NtpServer
- type NtpServerCreate
- type NtpServerUpdate
- type Plan
- type PlanCreate
- type PlanOp
- type PlanUpdate
- type PlanVmConfig
- type PodResult
- type Point
- type Profile
- type Project
- type ProjectCreate
- type ProjectMember
- type ProjectMemberCreate
- type ProjectMemberOP
- type ProjectOp
- type ProjectPage
- type ProjectResource
- type ProjectResourceCreate
- type ProjectResourceOp
- type ProjectResourceTree
- type ProjectUpdate
- type QueryOptions
- type Region
- type RegionCreate
- type RegionDatacenterRequest
- type RegionOp
- type RegionUpdate
- type RepoChangePassword
- type ResourceQuota
- type Response
- type SearchBind
- type SessionStatus
- type SessionUser
- type SourceDelete
- type SourceList
- type SourceScCreate
- type SourceSearch
- type SourceSecretCreate
- type Summary
- type SystemLog
- type SystemLogCreate
- type SystemRegistry
- type SystemRegistryBatchOp
- type SystemRegistryConn
- type SystemRegistryCreate
- type SystemRegistryDelete
- type SystemRegistryUpdate
- type SystemSetting
- type SystemSettingCreate
- type SystemSettingResult
- type SystemSettingUpdate
- type TaskLog
- type TemplateConfig
- type TemplateConfigCreate
- type Theme
- type UpdateRelationRequest
- type User
- type UserChangePassword
- type UserCreate
- type UserForgotPassword
- type UserMsgDTO
- type UserMsgResponse
- type UserOp
- type UserPage
- type UserSettingDTO
- type UserUpdate
- type UsersAddResponse
- type UsersResponse
- type VeleroBackup
- type VeleroBackupList
- type VeleroInstall
- type VmConfig
- type VmConfigCreate
- type VmConfigOp
- type VmConfigUpdate
- type WebkubectlToken
- type WorkWeiXinConfig
- type Zone
- type ZoneCreate
- type ZoneOp
- type ZoneUpdate
- type ZoneUpload
Constants ¶
View Source
const ( MetricTypeMatrix = "matrix" MetricTypeVector = "vector" )
Variables ¶
View Source
var MsgConfigs = map[string]interface{}{ constant.Email: EmailConfig{ Status: constant.Disable, }, constant.DingTalk: DingTalkConfig{ Status: constant.Disable, }, constant.WorkWeiXin: WorkWeiXinConfig{ Status: constant.Disable, }, }
Functions ¶
func CoverToConfig ¶
func CoverToModel ¶
func CoverToModel(dto MsgAccountDTO) model.MsgAccount
func LoadApiserverFromConfig ¶
Types ¶
type AddMemberResponse ¶
type AddMemberResponse struct {
Items []string `json:"items"`
}
type AddSubscribeResponse ¶
type BackupAccount ¶
type BackupAccount struct { model.BackupAccount CredentialVars interface{} `json:"credentialVars"` Projects string `json:"projects"` Clusters string `json:"clusters"` }
type BackupAccountOp ¶
type BackupAccountOp struct { Operation string `json:"operation" validate:"required"` Items []BackupAccount `json:"items" validate:"required"` }
type BackupAccountRequest ¶
type BackupAccountRequest struct { Name string `json:"name" validate:"required"` CredentialVars interface{} `json:"credentialVars" validate:"required"` Bucket string `json:"bucket" validate:"required"` Type string `json:"type" validate:"required"` Projects []string `json:"projects"` Clusters []string `json:"clusters"` }
type BackupAccountUpdate ¶
type BackupAccountUpdate struct { ID string `json:"id" validate:"required"` Name string `json:"name" validate:"required"` CredentialVars interface{} `json:"credentialVars" validate:"required"` Bucket string `json:"bucket" validate:"required"` Type string `json:"type" validate:"required"` Projects []string `json:"projects"` }
type BindKubePI ¶
type BindResponse ¶
type CisControl ¶
type CisControl struct { Id string `json:"id"` Version string `json:"version"` Text string `json:"text"` NodeType string `json:"node_type"` Tests CisTestList `json:"tests"` TotalPass int `json:"total_pass"` TotalFail int `json:"total_fail"` TotalWarn int `json:"total_warn"` TotalInfo int `json:"total_info"` }
type CisControlList ¶
type CisControlList []CisControl
type CisReport ¶
type CisReport struct { Controls CisControlList `json:"Controls"` Totals CisTotals `json:"Totals"` }
type CisResultList ¶
type CisResultList []CisResult
type CisTaskCreate ¶
type CisTaskCreate struct {
Policy string `json:"policy"`
}
type CisTaskDetail ¶
type CisTaskDetail struct { ClusterName string `json:"clusterName"` ClusterVersion string `json:"clusterVersion"` model.CisTaskWithResult CisReport CisReport `json:"cisReport"` }
type CisTestList ¶
type CisTestList []CisTest
type CloudDatastore ¶
type CloudRegionResponse ¶
type CloudRegionResponse struct { Result interface{} `json:"result"` Version string `json:"version"` }
type CloudStorageRequest ¶
type CloudStorageRequest struct { CredentialVars interface{} `json:"credentialVars" validate:"required"` Type string `json:"type" validate:"required"` }
type CloudZoneRequest ¶
type CloudZoneResponse ¶
type CloudZoneResponse struct {
Result interface{} `json:"result"`
}
type ClusterBackupFile ¶
type ClusterBackupFile struct {
model.ClusterBackupFile
}
type ClusterBackupFileCreate ¶
type ClusterBackupFileOp ¶
type ClusterBackupFileOp struct { Operation string `json:"operation" validate:"required"` Items []ClusterBackupFile `json:"items" validate:"required"` }
type ClusterBackupFileRestore ¶
type ClusterBackupFileRestore struct { ClusterName string `json:"clusterName" validate:"required"` Name string `json:"name" validate:"required"` File model.ClusterBackupFile `json:"file"` BackupAccount model.BackupAccount `json:"backupAccount"` }
type ClusterBackupStrategy ¶
type ClusterBackupStrategy struct { model.ClusterBackupStrategy ClusterName string `json:"clusterName"` BackupAccountName string `json:"backupAccountName"` }
type ClusterBackupStrategyRequest ¶
type ClusterBackupStrategyRequest struct { ID string `json:"id"` Cron int `json:"cron" validate:"min=1,max=300" en:"Backup Interval" zh:"备份间隔"` SaveNum int `json:"saveNum" validate:"min=1,max=100" en:"Keep Copies" zh:"保留份数"` BackupAccountName string `json:"backupAccountName" validate:"required"` ClusterName string `json:"clusterName" validate:"required"` Status string `json:"status"` }
type ClusterBatch ¶
type ClusterCreate ¶
type ClusterCreate struct { Name string `json:"name" binding:"required"` ProjectName string `json:"projectName"` NodeNameRule string `json:"nodeNameRule" binding:"required"` Version string `json:"version" binding:"required"` Architectures string `json:"architectures"` Provider string `json:"provider"` Plan string `json:"plan"` YumOperate string `json:"yumOperate"` NetworkType string `json:"networkType"` CiliumVersion string `json:"ciliumVersion"` CiliumTunnelMode string `json:"ciliumTunnelMode"` CiliumNativeRoutingCidr string `json:"ciliumNativeRoutingCidr"` FlannelBackend string `json:"flannelBackend"` CalicoIpv4PoolIpip string `json:"calicoIpv4PoolIpip"` NetworkInterface string `json:"networkInterface"` NetworkCidr string `json:"networkCidr"` KubePodSubnet string `json:"kubePodSubnet"` MaxNodePodNum int `json:"maxNodePodNum"` MaxNodeNum int `json:"maxNodeNum"` KubeServiceSubnet string `json:"kubeServiceSubnet"` KubeProxyMode string `json:"kubeProxyMode"` CgroupDriver string `json:"cgroupDriver"` KubeDnsDomain string `json:"kubeDnsDomain"` KubernetesAudit string `json:"kubernetesAudit"` NodeportAddress string `json:"nodeportAddress"` KubeServiceNodePortRange string `json:"kubeServiceNodePortRange"` RuntimeType string `json:"runtimeType"` DockerMirrorRegistry string `json:"dockerMirrorRegistry"` DockerRemoteApi string `json:"dockerRemoteApi"` DockerSubnet string `json:"dockerSubnet"` DockerStorageDir string `json:"dockerStorageDir"` ContainerdStorageDir string `json:"containerdStorageDir"` HelmVersion string `json:"helmVersion"` EnableDnsCache string `json:"enableDnsCache"` DnsCacheVersion string `json:"dnsCacheVersion"` IngressControllerType string `json:"ingressControllerType"` SupportGpu string `json:"supportGpu"` EtcdDataDir string `json:"etcdDataDir"` EtcdSnapshotCount int `json:"etcdSnapshotCount"` EtcdCompactionRetention int `json:"etcdCompactionRetention"` EtcdMaxRequest int `json:"etcdMaxRequest"` EtcdQuotaBackend int `json:"etcdQuotaBackend"` LbMode string `json:"lbMode"` LbKubeApiserverIp string `json:"lbKubeApiserverIp"` KubeApiServerPort int `json:"kubeApiServerPort"` MasterScheduleType string `json:"masterScheduleType"` WorkerAmount int `json:"workerAmount"` Nodes []NodeCreate `json:"nodes"` }
func (ClusterCreate) ClusterCreateDto2Mo ¶
func (c ClusterCreate) ClusterCreateDto2Mo() *model.Cluster
type ClusterGrade ¶
type ClusterGrade struct { Score int `json:"score"` TotalSum Summary `json:"totalSum"` ListSum map[string]Summary `json:"listSum"` Results []NamespaceResult `json:"results"` }
type ClusterHealth ¶
type ClusterHealth struct { Level string `json:"level"` Hooks []ClusterHealthHook `json:"hooks"` }
type ClusterHealthHook ¶
type ClusterImport ¶
type ClusterImport struct { Name string `json:"name"` Router string `json:"router"` ProjectName string `json:"projectName"` Architectures string `json:"architectures"` IsKoCluster bool `json:"isKoCluster"` KoClusterInfo clusterInfo `json:"clusterInfo"` AuthenticationMode string `json:"authenticationMode"` ApiServer string `json:"apiServer"` Token string `json:"token"` CertDataStr string `json:"certDataStr"` KeyDataStr string `json:"keyDataStr"` ConfigContent string `json:"configContent"` }
func (ClusterImport) ClusterImportDto2Mo ¶
func (c ClusterImport) ClusterImportDto2Mo() (*model.Cluster, error)
type ClusterInfo ¶
type ClusterLoad ¶
type ClusterLoad struct { Name string `json:"name"` Router string `json:"router"` Architectures string `json:"architectures"` AuthenticationMode string `json:"authenticationMode"` ApiServer string `json:"apiServer"` Token string `json:"token"` CertDataStr string `json:"certDataStr"` KeyDataStr string `json:"keyDataStr"` ConfigContent string `json:"configContent"` }
type ClusterLoadInfo ¶
type ClusterLoadInfo struct { Name string `json:"name"` NodeNameRule string `json:"nodeNameRule"` Version string `json:"version"` Architectures string `json:"architectures"` LbMode string `json:"lbMode"` LbKubeApiserverIp string `json:"lbKubeApiserverIp"` KubeApiServerPort int `json:"kubeApiServerPort"` KubeServiceNodePortRange string `json:"kubeServiceNodePortRange"` NodeportAddress string `json:"nodeportAddress"` KubeProxyMode string `json:"kubeProxyMode"` NetworkType string `json:"networkType"` KubeDnsDomain string `json:"kubeDnsDomain"` KubernetesAudit string `json:"kubernetesAudit"` RuntimeType string `json:"runtimeType"` MasterScheduleType string `json:"masterScheduleType"` KubePodSubnet string `json:"kubePodSubnet"` KubeServiceSubnet string `json:"kubeServiceSubnet"` MaxNodeNum int `json:"maxNodeNum"` MaxNodePodNum int `json:"maxNodePodNum"` KubeMaxPods int `json:"kubeMaxPods"` KubeNetworkNodePrefix int `json:"kubeNetworkNodePrefix"` Nodes []NodesFromK8s `json:"nodes"` }
type ClusterManifest ¶
type ClusterManifest struct { Name string `json:"name"` Version string `json:"version"` IsActive bool `json:"isActive"` CoreVars []NameVersion `json:"coreVars"` NetworkVars []NameVersion `json:"networkVars"` ToolVars []NameVersion `json:"toolVars"` StorageVars []NameVersion `json:"storageVars"` OtherVars []NameVersion `json:"otherVars"` }
func (ClusterManifest) GetVars ¶
func (c ClusterManifest) GetVars() map[string]string
type ClusterManifestGroup ¶
type ClusterManifestGroup struct { LargeVersion string `json:"largeVersion"` ClusterManifests []ClusterManifest `json:"clusterManifests"` }
type ClusterManifestUpdate ¶
type ClusterMember ¶
type ClusterMember struct { model.ClusterMember ClusterName string `json:"clusterName"` Username string `json:"username"` Email string `json:"email"` }
type ClusterMemberCreate ¶
type ClusterMemberCreate struct {
Usernames []string `json:"usernames" validate:"required"`
}
type ClusterNode ¶
type ClusterNode struct {
model.ClusterNode
}
type ClusterPage ¶
type ClusterRecoverItem ¶
type ClusterRelation ¶
type ClusterRelation struct { model.ClusterMultiClusterRepository ClusterName string `json:"clusterName"` }
type ClusterResource ¶
type ClusterResource struct { model.ClusterResource ResourceName string `json:"resourceName"` }
type ClusterResourceCreate ¶
type ClusterSecret ¶
type ClusterSecret struct {
model.ClusterSecret
}
type ClusterStorageProvisioner ¶
type ClusterStorageProvisioner struct { model.ClusterStorageProvisioner Vars map[string]interface{} `json:"vars"` }
type ClusterStorageProvisionerBatch ¶
type ClusterStorageProvisionerBatch struct { Items []ClusterStorageProvisioner `json:"items"` Operation string `json:"operation"` }
type ClusterStorageProvisionerCreation ¶
type ClusterStorageProvisionerCreation struct { Name string `json:"name"` Namespace string `json:"namespace"` Type string `json:"type"` Vars map[string]interface{} `json:"vars"` IsInCluster bool `json:"isInCluster"` }
func (ClusterStorageProvisionerCreation) ProvisionerCreate2Mo ¶
func (c ClusterStorageProvisionerCreation) ProvisionerCreate2Mo() model.ClusterStorageProvisioner
type ClusterTool ¶
type ClusterTool struct { model.ClusterTool NodePort string `json:"nodePort"` Vars map[string]interface{} `json:"vars"` }
type ClusterUpgrade ¶
type ClusterWithEndpoint ¶
type ComponentCreate ¶
type ComponentCreate struct { ClusterName string `json:"clusterName"` Name string `json:"name"` Type string `json:"type"` Version string `json:"version"` Describe string `json:"describe"` Vars map[string]interface{} `json:"vars"` }
func (ComponentCreate) ComponentCreate2Mo ¶
func (c ComponentCreate) ComponentCreate2Mo() model.ClusterSpecComponent
type ComponentPage ¶
type ComponentSync ¶
type CreateDemo ¶
type Credential ¶
type Credential struct {
model.Credential
}
type CredentialBatchOp ¶
type CredentialBatchOp struct { Operation string `json:"operation" validate:"required"` Items []Credential `json:"items" validate:"required"` }
type CredentialCreate ¶
type CredentialOfHostCreate ¶
type CredentialPage ¶
type CredentialPage struct { Items []Credential `json:"items"` Total int `json:"total"` }
type CredentialUpdate ¶
type DeploymentSearch ¶
type DingTalkConfig ¶
type EmailConfig ¶
type ExportPoint ¶
type ExportPoint [2]float64
type HostCreate ¶
type HostCreate struct { Name string `json:"name" validate:"required"` Ip string `json:"ip" validate:"required"` FlexIp string `json:"flexIp"` Port int `json:"port" validate:"required"` Project string `json:"project" validate:"required"` Cluster string `json:"cluster"` CredentialID string `json:"credentialId"` Credential CredentialOfHostCreate `json:"credential"` }
type HostUptate ¶
type ImportHostResponse ¶
type ImportRequest ¶
type ImportRequest struct {
Users []LdapUser `json:"users"`
}
type ImportResult ¶
type IpPoolCreate ¶
type IsClusterNameExist ¶
type IsClusterNameExist struct {
IsExist bool `json:"isExist"`
}
type LdapResult ¶
type LdapResult struct {
Data interface{} `json:"data"`
}
type LdapSetting ¶
type LdapSetting struct { Endpoint string `json:"ldap_address"` Port string `json:"ldap_port"` UserName string `json:"ldap_username"` UserDn string `json:"ldap_dn"` Password string `json:"ldap_password"` Filter string `json:"ldap_filter"` Mapping string `json:"ldap_mapping"` Status string `json:"ldap_status"` TLS string `json:"ldap_tls"` SizeLimit int TimeLimit int }
type License ¶
type License struct { Message string `json:"message"` Status string `json:"status"` LicenseInfo LicenseInfo `json:"license"` }
type LicenseInfo ¶
type LoginCredential ¶
type Metric ¶
type Metric struct { MetricName string `json:"metric_name,omitempty" description:"metric name, eg. scheduler_up_sum" csv:"metric_name"` MetricData `json:"data,omitempty" description:"actual metric result"` Error string `json:"error,omitempty" csv:"-"` }
type MetricData ¶
type MetricData struct { MetricType string `json:"resultType,omitempty" description:"result type, one of matrix, vector" csv:"metric_type"` MetricValues `json:"result,omitempty" description:"metric data including labels, time series and values" csv:"metric_values"` }
type MetricValue ¶
type MetricValue struct { Metadata map[string]string `json:"metric,omitempty" description:"time series labels"` Sample *Point `json:"value,omitempty" description:"time series, values of vector type"` Series []Point `json:"values,omitempty" description:"time series, values of matrix type"` ExportSample *ExportPoint `json:"exported_value,omitempty" description:"exported time series, values of vector type"` ExportedSeries []ExportPoint `json:"exported_values,omitempty" description:"exported time series, values of matrix type"` MinValue string `json:"min_value" description:"minimum value from monitor points"` MaxValue string `json:"max_value" description:"maximum value from monitor points"` AvgValue string `json:"avg_value" description:"average value from monitor points"` SumValue string `json:"sum_value" description:"sum value from monitor points"` Fee string `json:"fee" description:"resource fee"` ResourceUnit string `json:"resource_unit"` CurrencyUnit string `json:"currency_unit"` }
type MetricValues ¶
type MetricValues []MetricValue
type MsgAccountDTO ¶
type MsgAccountDTO struct { ID string `json:"-"` Name string `json:"name" validate:"containsany=EMAILDING_TALKWORK_WEIXIN"` Status string `json:"status"` Config interface{} `json:"config"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
func CoverToDTO ¶
func CoverToDTO(mo model.MsgAccount) MsgAccountDTO
type MsgSubConfig ¶
type MsgSubscribeDTO ¶
type MsgSubscribeDTO struct { model.MsgSubscribe SubConfig MsgSubConfig `json:"subConfig"` Users []model.User `json:"users"` }
func NewMsgSubscribeDTO ¶
func NewMsgSubscribeDTO(subscribe model.MsgSubscribe) MsgSubscribeDTO
type MsgSubscribeUserDTO ¶
type MultiClusterRepository ¶
type MultiClusterRepository struct {
model.MultiClusterRepository
}
type MultiClusterRepositoryBatch ¶
type MultiClusterRepositoryBatch struct { Operation string `json:"operation" validate:"required"` Items []MultiClusterRepository `json:"items" validate:"required"` }
type MultiClusterSyncClusterLog ¶
type MultiClusterSyncClusterLog struct { model.MultiClusterSyncClusterLog MultiClusterSyncClusterResourceLogs []model.MultiClusterSyncClusterResourceLog `json:"multiClusterSyncClusterResourceLogs"` ClusterName string `json:"clusterName"` }
type MultiClusterSyncLog ¶
type MultiClusterSyncLog struct {
model.MultiClusterSyncLog
}
type MultiClusterSyncLogDetail ¶
type MultiClusterSyncLogDetail struct { model.MultiClusterSyncLog MultiClusterSyncClusterLogs []MultiClusterSyncClusterLog `json:"multiClusterSyncClusterLogs"` }
type NameVersion ¶
type NamespaceResult ¶
type NamespaceResult struct { Namespace string `json:"namespace"` Results []NamespaceResultDetail `json:"results"` }
type NamespaceResultDetail ¶
type NodeCreate ¶
type NodesFromK8s ¶
type NtpServerCreate ¶
type NtpServerUpdate ¶
type PlanCreate ¶
type PlanCreate struct { Name string `json:"name" validate:"required"` Zones []string `json:"zones" validate:"required"` PlanVars interface{} `json:"planVars" validate:"required"` DeployTemplate string `json:"deployTemplate" validate:"required"` Projects []string `json:"projects" validate:"required"` Region string `json:"region" validate:"required"` }
type PlanUpdate ¶
type PlanUpdate struct { PlanVars interface{} `json:"planVars" validate:"required"` Projects []string `json:"projects" validate:"required"` }
type PlanVmConfig ¶
type Profile ¶
type Profile struct { User SessionUser `json:"user"` Token string `json:"token,omitempty"` }
type ProjectCreate ¶
type ProjectMember ¶
type ProjectMember struct { model.ProjectMember Email string `json:"email"` UserStatus string `json:"userStatus"` Username string `json:"username"` }
type ProjectMemberCreate ¶
type ProjectMemberCreate struct {
Usernames []string `json:"usernames" validate:"required"`
}
type ProjectMemberOP ¶
type ProjectMemberOP struct { Operation string `json:"operation" validate:"required"` Items []ProjectMemberCreate `json:"items" validate:"required"` }
type ProjectPage ¶
type ProjectResource ¶
type ProjectResource struct { model.ProjectResource ResourceName string `json:"resourceName"` }
type ProjectResourceCreate ¶
type ProjectResourceOp ¶
type ProjectResourceOp struct { Operation string `json:"operation" validate:"required"` Items []ProjectResource `json:"items" validate:"required"` }
type ProjectResourceTree ¶
type ProjectResourceTree struct { ID int `json:"id"` Label string `json:"label"` Type string `json:"type"` Children []ProjectResourceTree `json:"children"` }
type ProjectUpdate ¶
type ProjectUpdate struct {
Description string `json:"description"`
}
type QueryOptions ¶
type RegionCreate ¶
type RegionDatacenterRequest ¶
type RegionDatacenterRequest struct {
RegionVars interface{} `json:"regionVars" validate:"required"`
}
type RegionUpdate ¶
type RepoChangePassword ¶
type ResourceQuota ¶
type SearchBind ¶
type SessionStatus ¶
type SessionStatus struct {
IsLogin bool `json:"isLogin"`
}
type SessionUser ¶
type SessionUser struct { UserId string `json:"userId"` Name string `json:"name"` Email string `json:"email"` Language string `json:"language"` IsActive bool `json:"isActive"` IsAdmin bool `json:"isAdmin"` IsSuper bool `json:"isSuper"` Roles []string `json:"roles"` CurrentProject string `json:"currentProject"` }
func (SessionUser) IsRole ¶
func (s SessionUser) IsRole(userRole string) bool
type SourceDelete ¶
type SourceList ¶
type SourceScCreate ¶
type SourceScCreate struct { Cluster string `json:"cluster"` Info storagev1.StorageClass `json:"info"` }
type SourceSearch ¶
type SourceSecretCreate ¶
type SystemLogCreate ¶
type SystemRegistry ¶
type SystemRegistry struct { model.SystemRegistry Status string `json:"status"` Message string `json:"message"` }
type SystemRegistryBatchOp ¶
type SystemRegistryBatchOp struct { Operation string `json:"operation" validate:"required"` Items []SystemRegistry `json:"items" validate:"required"` }
type SystemRegistryConn ¶
type SystemRegistryCreate ¶
type SystemRegistryCreate struct { Hostname string `json:"hostname" validate:"required"` Protocol string `json:"protocol" validate:"required"` Architecture string `json:"architecture" validate:"required"` RepoPort int `json:"repoPort" validate:"required"` RegistryPort int `json:"registryPort" validate:"required"` RegistryHostedPort int `json:"registryHostedPort" validate:"required"` NexusUser string `json:"nexusUser" validate:"required"` NexusPassword string `json:"nexusPassword" validate:"required"` }
type SystemRegistryDelete ¶
type SystemRegistryDelete struct {
Architecture string `json:"architecture" validate:"required"`
}
type SystemRegistryUpdate ¶
type SystemSetting ¶
type SystemSetting struct {
model.SystemSetting
}
type SystemSettingCreate ¶
type SystemSettingResult ¶
type SystemSettingUpdate ¶
type TemplateConfig ¶
type TemplateConfig struct { model.TemplateConfig ConfigVars map[string]interface{} `json:"config"` }
type TemplateConfigCreate ¶
type UpdateRelationRequest ¶
type UserChangePassword ¶
type UserCreate ¶
type UserForgotPassword ¶
type UserMsgDTO ¶
type UserMsgResponse ¶
type UserMsgResponse struct { Items []UserMsgDTO `json:"items"` Unread int `json:"unread"` Total int `json:"total"` }
type UserSettingDTO ¶
type UserSettingDTO struct { model.UserSetting MsgConfig interface{} `json:"msgConfig"` }
func (UserSettingDTO) GetMsgConfig ¶
func (u UserSettingDTO) GetMsgConfig() (string, error)
type UserUpdate ¶
type UsersAddResponse ¶
type UsersResponse ¶
type UsersResponse struct {
Items []string `json:"items"`
}
type VeleroBackup ¶
type VeleroBackupList ¶
type VeleroBackupList struct {
Items []velero.VeleroBackup `json:"items"`
}
type VeleroInstall ¶
type VeleroInstall struct { Cluster string `json:"cluster"` BackupAccountName string `json:"backupAccountName"` ID string `json:"id"` Limits ResourceQuota `json:"limits"` Requests ResourceQuota `json:"requests"` }
type VmConfigCreate ¶
type VmConfigOp ¶
type VmConfigUpdate ¶
type WebkubectlToken ¶
type WebkubectlToken struct {
Token string `json:"token"`
}
type WorkWeiXinConfig ¶
type ZoneCreate ¶
type ZoneUpdate ¶
type ZoneUpdate struct { ID string `json:"id" validate:"required"` Name string `json:"name" validate:"required"` CloudVars interface{} `json:"cloudVars" validate:"required"` RegionID string `json:"regionID" validate:"required"` IpPoolName string `json:"ipPoolName" validate:"required"` CredentialName string `json:"credentialName"` }
type ZoneUpload ¶
type ZoneUpload struct {
Name string `json:"name" validate:"required"`
}
Source Files ¶
- TemplateConfig.go
- backup_account.go
- cis.go
- cluster.go
- cluster_backup_file.go
- cluster_backup_strategy.go
- cluster_import.go
- cluster_manifest.go
- cluster_member.go
- cluster_node.go
- cluster_resource.go
- cluster_storage.go
- cluster_tool.go
- component.go
- credential.go
- dashobard.go
- demo.go
- grade.go
- host.go
- ip.go
- ip_pool.go
- kubepi.go
- kubernetes.go
- license.go
- message_account.go
- metric.go
- msg_subscribe.go
- multi_cluster_repository.go
- ntp_server.go
- plan.go
- project.go
- project_member.go
- project_resource.go
- region.go
- response.go
- session.go
- system_log.go
- system_registry.go
- system_setting.go
- tasklog.go
- theme.go
- user.go
- user_msg.go
- user_setting.go
- velero_backup.go
- vm_config.go
- zone.go
Click to show internal directories.
Click to hide internal directories.