Documentation ¶
Overview ¶
Package cluster GENERATED BY gengo:enum DON'T EDIT THIS FILE
Package cluster GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package cluster GENERATED BY gengo:table DON'T EDIT THIS FILE
Index ¶
- Variables
- type AgentInfo
- type AgentSecureInfo
- type Cluster
- type EnvType
- func (EnvType) EnumValues() []any
- func (v EnvType) Label() string
- func (v EnvType) MarshalText() ([]byte, error)
- func (EnvType) RuntimeDoc(names ...string) ([]string, bool)
- func (v *EnvType) Scan(src any) error
- func (v EnvType) String() string
- func (v *EnvType) UnmarshalText(data []byte) error
- func (v EnvType) Value() (database_sql_driver.Value, error)
- type ID
- type Info
- type InstanceStatus
- type NetType
- func (NetType) EnumValues() []any
- func (v NetType) Label() string
- func (v NetType) MarshalText() ([]byte, error)
- func (NetType) RuntimeDoc(names ...string) ([]string, bool)
- func (v *NetType) Scan(src any) error
- func (v NetType) String() string
- func (v *NetType) UnmarshalText(data []byte) error
- func (v NetType) Value() (database_sql_driver.Value, error)
- type Status
- func (Status) EnumValues() []any
- func (v Status) Label() string
- func (v Status) MarshalText() ([]byte, error)
- func (Status) RuntimeDoc(names ...string) ([]string, bool)
- func (v *Status) Scan(src any) error
- func (v Status) String() string
- func (v *Status) UnmarshalText(data []byte) error
- func (v Status) Value() (database_sql_driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ClusterT = &tableCluster{ ID: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[ID](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("ID")), Name: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("Name")), Desc: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("Desc")), EnvType: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[EnvType](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("EnvType")), AgentInfo: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[AgentInfo](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("AgentInfo")), AgentSecureInfo: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[AgentSecureInfo](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("AgentSecureInfo")), NetType: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[NetType](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("NetType")), Endpoint: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[string](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("Endpoint")), CreatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("CreatedAt")), UpdatedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("UpdatedAt")), DeletedAt: github_com_octohelm_storage_pkg_sqlbuilder.CastCol[github_com_octohelm_storage_pkg_datatypes.Timestamp](github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).F("DeletedAt")), I: indexNameOfCluster{ Primary: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).Cols([]string{ "ID", "DeletedAt", }...), IName: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}).Cols([]string{ "Name", }...), }, table: github_com_octohelm_storage_pkg_sqlbuilder.TableFromModel(&Cluster{}), }
View Source
var InvalidEnvType = github_com_pkg_errors.New("invalid EnvType")
View Source
var InvalidNetType = github_com_pkg_errors.New("invalid NetType")
View Source
var InvalidStatus = github_com_pkg_errors.New("invalid Status")
View Source
var T = &sqlbuilder.Tables{}
Functions ¶
This section is empty.
Types ¶
type AgentInfo ¶ added in v0.5.4
type AgentInfo struct { Endpoint string `json:"endpoint,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
func (AgentInfo) RuntimeDoc ¶ added in v0.5.4
type AgentSecureInfo ¶ added in v0.5.4
type AgentSecureInfo struct {
OtpKeyURL string `json:"otpKeyURL,omitempty"`
}
func (AgentSecureInfo) DataType ¶ added in v0.5.4
func (AgentSecureInfo) DataType(driverName string) string
func (AgentSecureInfo) RuntimeDoc ¶ added in v0.5.4
func (v AgentSecureInfo) RuntimeDoc(names ...string) ([]string, bool)
func (*AgentSecureInfo) Scan ¶ added in v0.5.4
func (a *AgentSecureInfo) Scan(src any) error
func (AgentSecureInfo) Value ¶ added in v0.5.4
func (a AgentSecureInfo) Value() (database_sql_driver.Value, error)
type Cluster ¶
type Cluster struct { // 集群 ID ID ID `db:"f_cluster_id" json:"clusterID"` // 集群名称 Name string `db:"f_cluster_name" json:"name"` Info AgentInfo AgentInfo `db:"f_agent_info,default=''" json:"agentInfo,omitempty"` AgentSecureInfo AgentSecureInfo `db:"f_agent_secure_info,default=''" json:"-"` // 网络环境 // validate: string(required(),oneOf(['DIRECT','AIRGAP'])) NetType NetType `db:"f_net_type,default='1'" json:"netType"` // Deprecated Agent 地址 // validate: when('netType',is('DIRECT'),then(string(required()))) Endpoint string `db:"f_endpoint,default=''" json:"-"` datatypes.CreationUpdationDeletionTime }
+gengo:table:register=T +gengo:table:group=cluster
@def primary ID DeletedAt @def unique_index i_name Name @def index i_created_at CreatedAt @def index i_updated_at UpdatedAt
func (Cluster) Indexes ¶
func (Cluster) Indexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
func (Cluster) UniqueIndexes ¶
func (Cluster) UniqueIndexes() github_com_octohelm_storage_pkg_sqlbuilder.Indexes
type EnvType ¶
type EnvType uint8
+gengo:enum
func ParseEnvTypeFromString ¶
func ParseEnvTypeLabelString ¶
func (EnvType) EnumValues ¶
func (EnvType) MarshalText ¶
func (*EnvType) UnmarshalText ¶
type Info ¶
type InstanceStatus ¶
type InstanceStatus struct { clusterinfo.ClusterInfo Ping strfmt.Duration `json:"ping,omitempty"` }
func (InstanceStatus) RuntimeDoc ¶
func (v InstanceStatus) RuntimeDoc(names ...string) ([]string, bool)
type NetType ¶
type NetType uint8
+gengo:enum
func ParseNetTypeFromString ¶
func ParseNetTypeLabelString ¶
func (NetType) EnumValues ¶
func (NetType) MarshalText ¶
func (*NetType) UnmarshalText ¶
type Status ¶
type Status uint8
+gengo:enum
func ParseStatusFromString ¶
func ParseStatusLabelString ¶
func (Status) EnumValues ¶
func (Status) MarshalText ¶
func (*Status) UnmarshalText ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package repository GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
|
Package repository GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE |
Package service GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
|
Package service GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE |
Click to show internal directories.
Click to hide internal directories.