Documentation ¶
Index ¶
- Constants
- func Convert(srcObj core.ApiObject, dstGVK core.GVK) (core.ApiObject, error)
- func New(kind string) (core.ApiObject, error)
- type AdditionalConfigs
- type AnsibleInventory
- type App
- func (src App) DeepCopy() *App
- func (src App) DeepCopyApiObject() core.ApiObject
- func (src App) DeepCopyInto(dst *App) error
- func (obj *App) FromJSON(data []byte) error
- func (obj *App) FromYAML(data []byte) error
- func (obj App) GetVersion(version string) (AppVersion, bool)
- func (obj App) GetVersionModule(version string, moduleName string) (AppModule, bool)
- func (obj App) Sha256() string
- func (obj *App) SpecDecode(data []byte) error
- func (obj App) SpecEncode() ([]byte, error)
- func (obj App) SpecHash() string
- func (obj App) ToJSON() ([]byte, error)
- func (obj App) ToJSONPretty() ([]byte, error)
- func (obj App) ToYAML() ([]byte, error)
- func (obj App) VersionEnabled(version string) bool
- type AppArgs
- type AppGlobal
- type AppInstance
- func (src AppInstance) DeepCopy() *AppInstance
- func (src AppInstance) DeepCopyApiObject() core.ApiObject
- func (src AppInstance) DeepCopyInto(dst *AppInstance) error
- func (obj *AppInstance) FromJSON(data []byte) error
- func (obj *AppInstance) FromYAML(data []byte) error
- func (obj AppInstance) Sha256() string
- func (obj *AppInstance) SpecDecode(data []byte) error
- func (obj AppInstance) SpecEncode() ([]byte, error)
- func (obj AppInstance) SpecHash() string
- func (obj AppInstance) ToJSON() ([]byte, error)
- func (obj AppInstance) ToJSONPretty() ([]byte, error)
- func (obj AppInstance) ToYAML() ([]byte, error)
- type AppInstanceArgs
- type AppInstanceGlobal
- type AppInstanceHostAliases
- type AppInstanceModule
- type AppInstanceModuleRef
- type AppInstanceRef
- type AppInstanceRegistry
- type AppInstanceSpec
- func (s AppInstanceSpec) GetGlobalArgValue(argName string) (interface{}, bool)
- func (s AppInstanceSpec) GetModuleArgValue(moduleName, argName string) (interface{}, bool)
- func (s *AppInstanceSpec) SetGlobalArgValue(argName string, argValue interface{}) bool
- func (s *AppInstanceSpec) SetModuleArgValue(moduleName, argName string, argValue interface{}) bool
- type AppModule
- type AppRef
- type AppRegistry
- type AppSpec
- type AppVersion
- type Audit
- func (src Audit) DeepCopy() *Audit
- func (src Audit) DeepCopyApiObject() core.ApiObject
- func (src Audit) DeepCopyInto(dst *Audit) error
- func (obj *Audit) FromJSON(data []byte) error
- func (obj *Audit) FromYAML(data []byte) error
- func (obj Audit) Sha256() string
- func (obj *Audit) SpecDecode(data []byte) error
- func (obj Audit) SpecEncode() ([]byte, error)
- func (obj Audit) SpecHash() string
- func (obj Audit) ToJSON() ([]byte, error)
- func (obj Audit) ToJSONPretty() ([]byte, error)
- func (obj Audit) ToYAML() ([]byte, error)
- type AuditRegistry
- type AuditSpec
- type CPU
- type ConfigMap
- func (src ConfigMap) DeepCopy() *ConfigMap
- func (src ConfigMap) DeepCopyApiObject() core.ApiObject
- func (src ConfigMap) DeepCopyInto(dst *ConfigMap) error
- func (obj *ConfigMap) FromJSON(data []byte) error
- func (obj *ConfigMap) FromYAML(data []byte) error
- func (obj ConfigMap) Sha256() string
- func (obj *ConfigMap) SpecDecode(data []byte) error
- func (obj ConfigMap) SpecEncode() ([]byte, error)
- func (obj ConfigMap) SpecHash() string
- func (obj ConfigMap) ToJSON() ([]byte, error)
- func (obj ConfigMap) ToJSONPretty() ([]byte, error)
- func (obj ConfigMap) ToYAML() ([]byte, error)
- type ConfigMapRef
- type ConfigMapRegistry
- type ConfigMapRevision
- func (r ConfigMapRevision) DeleteAllRevisions(ctx context.Context, namespace string, name string) error
- func (r ConfigMapRevision) DeleteRevision(ctx context.Context, namespace string, name string, revision int) (core.ApiObject, error)
- func (r ConfigMapRevision) GetLastRevision(ctx context.Context, namespace string, name string) (core.ApiObject, error)
- func (r ConfigMapRevision) GetRevision(ctx context.Context, namespace string, name string, revision int) (core.ApiObject, error)
- func (r ConfigMapRevision) ListRevisions(ctx context.Context, namespace string, name string) (core.ApiObjectList, error)
- func (r ConfigMapRevision) RevertRevision(ctx context.Context, namespace string, name string, revision int) (core.ApiObject, error)
- func (r ConfigMapRevision) SetRevision(ctx context.Context, obj core.ApiObject) error
- type Disk
- type Event
- func (src Event) DeepCopy() *Event
- func (src Event) DeepCopyApiObject() core.ApiObject
- func (src Event) DeepCopyInto(dst *Event) error
- func (obj *Event) FromJSON(data []byte) error
- func (obj *Event) FromYAML(data []byte) error
- func (obj Event) Sha256() string
- func (obj *Event) SpecDecode(data []byte) error
- func (obj Event) SpecEncode() ([]byte, error)
- func (obj Event) SpecHash() string
- func (obj Event) ToJSON() ([]byte, error)
- func (obj Event) ToJSONPretty() ([]byte, error)
- func (obj Event) ToYAML() ([]byte, error)
- type EventRegistry
- type EventSpec
- type GPU
- func (src GPU) DeepCopy() *GPU
- func (src GPU) DeepCopyApiObject() core.ApiObject
- func (src GPU) DeepCopyInto(dst *GPU) error
- func (obj *GPU) FromJSON(data []byte) error
- func (obj *GPU) FromYAML(data []byte) error
- func (obj GPU) Sha256() string
- func (obj *GPU) SpecDecode(data []byte) error
- func (obj GPU) SpecEncode() ([]byte, error)
- func (obj GPU) SpecHash() string
- func (obj GPU) ToJSON() ([]byte, error)
- func (obj GPU) ToJSONPretty() ([]byte, error)
- func (obj GPU) ToYAML() ([]byte, error)
- type GPUInfo
- type GPURegistry
- type GPUSpec
- type GroupVars
- type Helper
- type Host
- func (src Host) DeepCopy() *Host
- func (src Host) DeepCopyApiObject() core.ApiObject
- func (src Host) DeepCopyInto(dst *Host) error
- func (obj *Host) FromJSON(data []byte) error
- func (obj *Host) FromYAML(data []byte) error
- func (obj Host) Sha256() string
- func (obj *Host) SpecDecode(data []byte) error
- func (obj Host) SpecEncode() ([]byte, error)
- func (obj Host) SpecHash() string
- func (obj Host) ToJSON() ([]byte, error)
- func (obj Host) ToJSONPretty() ([]byte, error)
- func (obj Host) ToYAML() ([]byte, error)
- type HostInfo
- type HostLimits
- type HostPlugin
- type HostRegistry
- type HostSSH
- type HostSpec
- type Job
- func (src Job) DeepCopy() *Job
- func (src Job) DeepCopyApiObject() core.ApiObject
- func (src Job) DeepCopyInto(dst *Job) error
- func (obj *Job) FromJSON(data []byte) error
- func (obj *Job) FromYAML(data []byte) error
- func (obj Job) Sha256() string
- func (obj *Job) SpecDecode(data []byte) error
- func (obj Job) SpecEncode() ([]byte, error)
- func (obj Job) SpecHash() string
- func (obj Job) ToJSON() ([]byte, error)
- func (obj Job) ToJSONPretty() ([]byte, error)
- func (obj Job) ToYAML() ([]byte, error)
- type JobAnsible
- type JobConfig
- type JobExec
- type JobRegistry
- type JobSpec
- type K8sConfig
- func (src K8sConfig) DeepCopy() *K8sConfig
- func (src K8sConfig) DeepCopyApiObject() core.ApiObject
- func (src K8sConfig) DeepCopyInto(dst *K8sConfig) error
- func (obj *K8sConfig) FromJSON(data []byte) error
- func (obj *K8sConfig) FromYAML(data []byte) error
- func (obj K8sConfig) Sha256() string
- func (obj *K8sConfig) SpecDecode(data []byte) error
- func (obj K8sConfig) SpecEncode() ([]byte, error)
- func (obj K8sConfig) SpecHash() string
- func (obj K8sConfig) ToJSON() ([]byte, error)
- func (obj K8sConfig) ToJSONPretty() ([]byte, error)
- func (obj K8sConfig) ToYAML() ([]byte, error)
- type K8sConfigRegistry
- type K8sHostRef
- type K8sYaml
- type LivenessProbe
- type Memory
- type Namespace
- func (src Namespace) DeepCopy() *Namespace
- func (src Namespace) DeepCopyApiObject() core.ApiObject
- func (src Namespace) DeepCopyInto(dst *Namespace) error
- func (obj *Namespace) FromJSON(data []byte) error
- func (obj *Namespace) FromYAML(data []byte) error
- func (obj Namespace) Sha256() string
- func (obj *Namespace) SpecDecode(data []byte) error
- func (obj Namespace) SpecEncode() ([]byte, error)
- func (obj Namespace) SpecHash() string
- func (obj Namespace) ToJSON() ([]byte, error)
- func (obj Namespace) ToJSONPretty() ([]byte, error)
- func (obj Namespace) ToYAML() ([]byte, error)
- type NamespaceRegistry
- type OS
- type Pkg
- func (src Pkg) DeepCopy() *Pkg
- func (src Pkg) DeepCopyApiObject() core.ApiObject
- func (src Pkg) DeepCopyInto(dst *Pkg) error
- func (obj *Pkg) FromJSON(data []byte) error
- func (obj *Pkg) FromYAML(data []byte) error
- func (obj Pkg) Sha256() string
- func (obj *Pkg) SpecDecode(data []byte) error
- func (obj Pkg) SpecEncode() ([]byte, error)
- func (obj Pkg) SpecHash() string
- func (obj Pkg) ToJSON() ([]byte, error)
- func (obj Pkg) ToJSONPretty() ([]byte, error)
- func (obj Pkg) ToYAML() ([]byte, error)
- type PkgRegistry
- type PkgSpec
- type Project
- func (src Project) DeepCopy() *Project
- func (src Project) DeepCopyApiObject() core.ApiObject
- func (src Project) DeepCopyInto(dst *Project) error
- func (obj *Project) FromJSON(data []byte) error
- func (obj *Project) FromYAML(data []byte) error
- func (obj Project) Sha256() string
- func (obj *Project) SpecDecode(data []byte) error
- func (obj Project) SpecEncode() ([]byte, error)
- func (obj Project) SpecHash() string
- func (obj Project) ToJSON() ([]byte, error)
- func (obj Project) ToJSONPretty() ([]byte, error)
- func (obj Project) ToYAML() ([]byte, error)
- type ProjectRegistry
- type ResourceRef
- type Resources
- type Revision
- func (src Revision) DeepCopy() *Revision
- func (src Revision) DeepCopyApiObject() core.ApiObject
- func (src Revision) DeepCopyInto(dst *Revision) error
- func (obj *Revision) FromJSON(data []byte) error
- func (obj *Revision) FromYAML(data []byte) error
- func (obj Revision) Sha256() string
- func (obj *Revision) SpecDecode(data []byte) error
- func (obj Revision) SpecEncode() ([]byte, error)
- func (obj Revision) SpecHash() string
- func (obj Revision) ToJSON() ([]byte, error)
- func (obj Revision) ToJSONPretty() ([]byte, error)
- func (obj Revision) ToYAML() ([]byte, error)
- type RevisionRegistry
- type SdkPlugin
- type ValueFrom
Constants ¶
const (
ApiVersion = "v1"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdditionalConfigs ¶
type AdditionalConfigs struct { Enabled bool ConfigMapRef ConfigMapRef Args []AppArgs }
type AnsibleInventory ¶
type App ¶
type App struct { core.BaseApiObj `json:",inline" yaml:",inline"` Spec AppSpec }
func (App) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *App
func (App) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (App) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *App
func (App) GetVersion ¶
func (obj App) GetVersion(version string) (AppVersion, bool)
func (App) GetVersionModule ¶
func (App) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
func (App) VersionEnabled ¶
type AppGlobal ¶
type AppGlobal struct { Args []AppArgs ConfigMapRef ConfigMapRef HostAliases []string }
type AppInstance ¶
type AppInstance struct { core.BaseApiObj `json:",inline" yaml:",inline"` Spec AppInstanceSpec }
func (AppInstance) DeepCopy ¶
func (src AppInstance) DeepCopy() *AppInstance
DeepCopy is auto generated by codegen, create and copy public fields into the new *AppInstance
func (AppInstance) DeepCopyApiObject ¶
func (src AppInstance) DeepCopyApiObject() core.ApiObject
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (AppInstance) DeepCopyInto ¶
func (src AppInstance) DeepCopyInto(dst *AppInstance) error
DeepCopyInto is auto generated by codegen, copy public fields into the *AppInstance
func (*AppInstance) FromJSON ¶
func (obj *AppInstance) FromJSON(data []byte) error
FromJSON is auto generated by codegen, unmarshal from json bytes
func (*AppInstance) FromYAML ¶
func (obj *AppInstance) FromYAML(data []byte) error
FromYAML is auto generated by codegen, unmarshal from yaml bytes
func (AppInstance) Sha256 ¶
func (obj AppInstance) Sha256() string
func (*AppInstance) SpecDecode ¶
func (obj *AppInstance) SpecDecode(data []byte) error
SpecDecode 反序列化Spec字段的内容
func (AppInstance) SpecEncode ¶
func (obj AppInstance) SpecEncode() ([]byte, error)
SpecEncode 序列化Spec字段的内容
func (AppInstance) ToJSON ¶
func (obj AppInstance) ToJSON() ([]byte, error)
ToJSON is auto generated by codegen, marshal to json bytes
func (AppInstance) ToJSONPretty ¶
func (obj AppInstance) ToJSONPretty() ([]byte, error)
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
func (AppInstance) ToYAML ¶
func (obj AppInstance) ToYAML() ([]byte, error)
ToYAML is auto generated by codegen, marshal to yaml bytes
type AppInstanceArgs ¶
type AppInstanceArgs struct { Name string Value interface{} }
type AppInstanceGlobal ¶
type AppInstanceGlobal struct { Args []AppInstanceArgs HostAliases []AppInstanceHostAliases ConfigMapRef ConfigMapRef }
type AppInstanceHostAliases ¶
type AppInstanceModule ¶
type AppInstanceModule struct { Name string Notes string AppVersion string Args []AppInstanceArgs HostRefs []string HostAliases []AppInstanceHostAliases ConfigMapRef ConfigMapRef AdditionalConfigs AdditionalConfigs }
type AppInstanceModuleRef ¶
type AppInstanceModuleRef struct { AppInstanceRef Module string Replica int }
type AppInstanceRef ¶
type AppInstanceRegistry ¶
AppInstanceRegistry 应用实例存储器 +namespaced=true
func NewAppInstanceRegistry ¶
func NewAppInstanceRegistry() *AppInstanceRegistry
NewAppInstanceRegistry 实例化应用实例存储器
type AppInstanceSpec ¶
type AppInstanceSpec struct { Category string AppRef AppRef Action string LivenessProbe LivenessProbe Modules []AppInstanceModule Global AppInstanceGlobal K8sRef string }
func (AppInstanceSpec) GetGlobalArgValue ¶
func (s AppInstanceSpec) GetGlobalArgValue(argName string) (interface{}, bool)
func (AppInstanceSpec) GetModuleArgValue ¶
func (s AppInstanceSpec) GetModuleArgValue(moduleName, argName string) (interface{}, bool)
func (*AppInstanceSpec) SetGlobalArgValue ¶
func (s *AppInstanceSpec) SetGlobalArgValue(argName string, argValue interface{}) bool
func (*AppInstanceSpec) SetModuleArgValue ¶
func (s *AppInstanceSpec) SetModuleArgValue(moduleName, argName string, argValue interface{}) bool
type AppModule ¶
type AppModule struct { Name string Desc string SkipUpgrade bool Required bool Notes string Replication bool HostLimits HostLimits IncludeRoles []string Args []AppArgs ConfigMapRef ConfigMapRef AdditionalConfigs AdditionalConfigs EnableLogging bool EnablePurgeData bool ExtraVars map[string]interface{} Resources Resources HostAliases []string }
type AppRegistry ¶
AppRegistry 应用存储器 +namespaced=true
type AppSpec ¶
type AppSpec struct { Category string Platform string Versions []AppVersion }
type AppVersion ¶
type AppVersion struct { Version string ShortName string Platform string Desc string Increment bool SupportActions []string SupportMediaTypes []string SupportGpuModels []string Enabled bool DashboardId string PkgRef string LivenessProbe LivenessProbe Modules []AppModule Global AppGlobal GpuRequired bool }
type Audit ¶
type Audit struct { core.BaseApiObj `json:",inline" yaml:",inline"` Spec AuditSpec }
func (Audit) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *Audit
func (Audit) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (Audit) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *Audit
func (Audit) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type AuditRegistry ¶
AuditRegistry 审计日志存储器
type ConfigMap ¶
type ConfigMap struct { core.BaseApiObj `json:",inline" yaml:",inline"` Data map[string]string }
func (ConfigMap) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *ConfigMap
func (ConfigMap) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (ConfigMap) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *ConfigMap
func (*ConfigMap) SpecDecode ¶
SpecDecode 反序列化Spec字段的内容
func (ConfigMap) SpecEncode ¶
SpecEncode 序列化Spec字段的内容
func (ConfigMap) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type ConfigMapRef ¶
type ConfigMapRegistry ¶
ConfigMapRegistry 配置字典存储器 +namespaced=true
func NewConfigMapRegistry ¶
func NewConfigMapRegistry() *ConfigMapRegistry
NewConfigMapRegistry 实例化配置字典存储器
type ConfigMapRevision ¶
type ConfigMapRevision struct {
// contains filtered or unexported fields
}
ConfigMapRevision 配置字典修订版本记录器,实现了Revisioner接口
func NewConfigMapRevision ¶
func NewConfigMapRevision() *ConfigMapRevision
NewConfigMapRevision 实例化配置字典修订历史记录器
func (ConfigMapRevision) DeleteAllRevisions ¶
func (ConfigMapRevision) DeleteRevision ¶
func (ConfigMapRevision) GetLastRevision ¶
func (ConfigMapRevision) GetRevision ¶
func (ConfigMapRevision) ListRevisions ¶
func (r ConfigMapRevision) ListRevisions(ctx context.Context, namespace string, name string) (core.ApiObjectList, error)
func (ConfigMapRevision) RevertRevision ¶
func (ConfigMapRevision) SetRevision ¶
type Event ¶
type Event struct { core.BaseApiObj `json:",inline" yaml:",inline"` Spec EventSpec }
func (Event) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *Event
func (Event) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (Event) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *Event
func (Event) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type EventRegistry ¶
EventRegistry 事件日志存储器
type EventSpec ¶
type EventSpec struct { ResourceRef ResourceRef Action string Msg string JobRef string }
type GPU ¶
type GPU struct { core.BaseApiObj `json:",inline" yaml:",inline"` Spec GPUSpec }
func (GPU) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *GPU
func (GPU) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (GPU) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *GPU
func (GPU) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type GPURegistry ¶
GPURegistry 显卡存储器
func (GPURegistry) GetGPUName ¶
func (r GPURegistry) GetGPUName(hostRef string, slot int) string
GetGPUName 获取显卡标识名
type GPUSpec ¶
type GPUSpec struct { HostRef string Info GPUInfo AppInstanceModuleRef AppInstanceModuleRef }
type Helper ¶
type Helper struct { App *AppRegistry AppInstance *AppInstanceRegistry Audit *AuditRegistry ConfigMap *ConfigMapRegistry Event *EventRegistry GPU *GPURegistry Host *HostRegistry Job *JobRegistry K8sConfig *K8sConfigRegistry Namespace *NamespaceRegistry Pkg *PkgRegistry Project *ProjectRegistry Revision *RevisionRegistry }
Helper 对v1版本所有实体对象的操作封装
type Host ¶
type Host struct { core.BaseApiObj `json:",inline" yaml:",inline"` Spec HostSpec }
func (Host) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *Host
func (Host) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (Host) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *Host
func (Host) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type HostLimits ¶
type HostPlugin ¶
type HostPlugin struct { AppInstanceRef AppInstanceRef AppRef AppRef }
type HostRegistry ¶
HostRegistry 主机存储器
type HostSpec ¶
type HostSpec struct { SSH HostSSH Info HostInfo Plugins []HostPlugin Sdks []SdkPlugin }
type Job ¶
type Job struct { core.BaseApiObj `json:",inline" yaml:",inline"` Spec JobSpec }
func (Job) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *Job
func (Job) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (Job) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *Job
func (Job) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type JobAnsible ¶
type JobConfig ¶
type JobConfig struct { Path string ConfigMapRef ConfigMapRef }
type JobExec ¶
type JobExec struct { Type string Ansible JobAnsible }
type JobRegistry ¶
JobRegistry 任务存储器
func (JobRegistry) GetLog ¶
func (r JobRegistry) GetLog(jobsDir string, jobName string) ([]byte, error)
GetLog 获取任务的运行日志
func (JobRegistry) GetLogPath ¶
func (r JobRegistry) GetLogPath(jobsDir string, jobName string) (string, error)
GetLogPath 获取任务工作目录路径
type K8sConfig ¶
type K8sConfig struct { core.BaseApiObj `json:",inline" yaml:",inline"` Spec K8sYaml }
func (K8sConfig) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *K8sConfig
func (K8sConfig) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (K8sConfig) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *K8sConfig
func (*K8sConfig) SpecDecode ¶
SpecDecode 反序列化Spec字段的内容
func (K8sConfig) SpecEncode ¶
SpecEncode 序列化Spec字段的内容
func (K8sConfig) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type K8sConfigRegistry ¶
K8sConfigRegistry K8S集群存储器 +namespaced=true
func NewK8sConfigRegistry ¶
func NewK8sConfigRegistry() *K8sConfigRegistry
NewK8sConfigRegistry 实例化K8S集群存储器
func (K8sConfigRegistry) GetFirstMasterHost ¶
func (r K8sConfigRegistry) GetFirstMasterHost(name string) (*Host, error)
type K8sHostRef ¶
type K8sYaml ¶
type K8sYaml struct { Action string Chrony string Etcd struct { Hosts []K8sHostRef } ExLb string Harbor struct { Hosts []K8sHostRef } K8SMaster struct { Hosts []K8sHostRef } `json:"K8s-master" yaml:"K8s-master"` K8SWorker struct { Hosts []K8sHostRef } `json:"K8s-worker" yaml:"K8s-worker"` K8SWorkerNew struct { Hosts []K8sHostRef } `json:"K8s-worker-new" yaml:"K8s-worker-new"` GPU struct { Hosts []K8sHostRef } }
type LivenessProbe ¶
type Namespace ¶
type Namespace struct {
core.BaseApiObj `json:",inline" yaml:",inline"`
}
func (Namespace) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *Namespace
func (Namespace) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (Namespace) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *Namespace
func (*Namespace) SpecDecode ¶
SpecDecode 反序列化Spec字段的内容
func (Namespace) SpecEncode ¶
SpecEncode 序列化Spec字段的内容
func (Namespace) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type NamespaceRegistry ¶
NamespaceRegistry 命名空间存储器
func NewNamespaceRegistry ¶
func NewNamespaceRegistry() *NamespaceRegistry
NewNamespaceRegistry 实例化命名空间存储器
type Pkg ¶
type Pkg struct { core.BaseApiObj `json:",inline" yaml:",inline"` Spec PkgSpec }
func (Pkg) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *Pkg
func (Pkg) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (Pkg) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *Pkg
func (Pkg) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type PkgRegistry ¶
PkgRegistry 部署包存储器
type Project ¶
type Project struct { core.BaseApiObj `json:",inline" yaml:",inline"` ReferNamespaces []string }
func (Project) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *Project
func (Project) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (Project) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *Project
func (*Project) SpecDecode ¶
SpecDecode 反序列化Spec字段的内容
func (Project) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type ProjectRegistry ¶
ProjectRegistry 项目存储器
type ResourceRef ¶
type Revision ¶
type Revision struct { core.BaseApiObj `json:",inline" yaml:",inline"` ResourceRef ResourceRef Revision int Data string }
func (Revision) DeepCopy ¶
DeepCopy is auto generated by codegen, create and copy public fields into the new *Revision
func (Revision) DeepCopyApiObject ¶
DeepCopyApiObject is auto generated by codegen, deep copy and return as ApiObject
func (Revision) DeepCopyInto ¶
DeepCopyInto is auto generated by codegen, copy public fields into the *Revision
func (*Revision) SpecDecode ¶
SpecDecode 反序列化Spec字段的内容
func (Revision) SpecEncode ¶
SpecEncode 序列化Spec字段的内容
func (Revision) ToJSONPretty ¶
ToJSONPretty is auto generated by codegen, marshal to json bytes with pretty format
type RevisionRegistry ¶
RevisionRegistry 修订版本存储器
func NewRevisionRegistry ¶
func NewRevisionRegistry() *RevisionRegistry
NewRevisionRegistry 实例化修订版本存储器
type SdkPlugin ¶
type SdkPlugin struct { AppInstanceRef AppInstanceRef AppRef AppRef }
type ValueFrom ¶
type ValueFrom struct { ConfigMapRef ConfigMapRef HostRef string }