Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLog ¶
type AuditLog struct {
ID int `json:"id" gorm:"column:id;type:int(11);AUTO_INCREMENT;primary_key"`
ProjectUUID string `json:"project_uuid" gorm:"column:project_uuid;type:varchar(36)"`
ClusterUUID string `json:"cluster_uuid" gorm:"column:cluster_uuid;type:varchar(36)"`
Event string `json:"event" gorm:"column:event;type:text"`
CreateDate time.Time `json:"create_date" gorm:"column:create_date;type:datetime"`
}
type Cluster ¶
type Cluster struct {
ID int64 `json:"-" gorm:"primary_key;auto_increment"`
ClusterUUID string `json:"cluster_uuid" gorm:"type:varchar(36)"`
ClusterName string `json:"cluster_name" gorm:"type:varchar(50)"`
ClusterCreateDate time.Time `json:"cluster_create_date" gorm:"type:datetime"`
ClusterDeleteDate time.Time `json:"cluster_delete_date" gorm:"type:datetime;default:null"`
ClusterUpdateDate time.Time `json:"cluster_update_date" gorm:"type:datetime;default:null"`
ClusterCertificateExpireDate time.Time `json:"cluster_certificate_expire_date" gorm:"type:datetime;default:null"`
ClusterVersion string `json:"cluster_version" gorm:"type:varchar(30)"`
ClusterStatus string `json:"cluster_status" gorm:"type:varchar(10)"`
ClusterProjectUUID string `json:"cluster_project_uuid" gorm:"type:varchar(36)"`
ClusterLoadbalancerUUID string `json:"cluster_loadbalancer_uuid" gorm:"type:varchar(36)"`
ClusterRegisterToken string `json:"cluster_register_token" gorm:"type:varchar(255)"`
ClusterAgentToken string `json:"cluster_agent_token" gorm:"type:varchar(255)"`
ClusterSubnets datatypes.JSON `json:"cluster_subnets" gorm:"type:json"`
ClusterNodeKeypairName string `json:"cluster_node_keypair_name" gorm:"type:varchar(140)"`
ClusterEndpoint string `json:"cluster_endpoint" gorm:"type:varchar(144)"`
ClusterAPIAccess string `json:"cluster_api_access" gorm:"type:varchar(255)"`
FloatingIPUUID string `json:"floating_ip_uuid" gorm:"type:varchar(36)"`
ClusterCloudflareRecordID string `json:"cluster_cloudflare_record_id" gorm:"type:varchar(36)"`
ApplicationCredentialID string `json:"application_credential_id" gorm:"type:varchar(36)"`
}
type Kubeconfigs ¶
type Kubeconfigs struct {
ID int `json:"id" gorm:"column:id;type:int(11);AUTO_INCREMENT;primary_key"`
ClusterUUID string `json:"cluster_uuid" gorm:"column:cluster_uuid;type:varchar(36)"`
KubeConfig string `json:"kubeconfig" gorm:"column:kubeconfig;type:text"`
CreateDate time.Time `json:"create_date" gorm:"column:create_date;type:datetime"`
UpdateDate time.Time `json:"update_date" gorm:"column:update_date;type:datetime;default:null"`
}
func (*Kubeconfigs) TableName ¶
func (m *Kubeconfigs) TableName() string
type NodeGroups ¶
type NodeGroups struct {
ID int64 `json:"-" gorm:"primary_key;auto_increment"`
ClusterUUID string `json:"cluster_uuid" gorm:"type:varchar(36)"`
NodeGroupUUID string `json:"node_group_uuid" gorm:"type:varchar(36)"`
NodeGroupName string `json:"node_group_name" gorm:"type:varchar(255)"`
NodeGroupLabels datatypes.JSON `json:"node_group_labels" gorm:"type:json"`
NodeGroupMinSize int `json:"node_group_min_size" gorm:"type:int(11)"`
NodeGroupMaxSize int `json:"node_group_max_size" gorm:"type:int(11)"`
NodeDiskSize int `json:"node_disk_size" gorm:"type:int(11)"`
NodeFlavorUUID string `json:"node_flavor_uuid" gorm:"type:varchar(36)"`
NodeGroupsStatus string `json:"node_groups_status" gorm:"type:varchar(10)"` // Active, Updating, Deleted
NodeGroupsType string `json:"node_groups_type" gorm:"type:varchar(10)"` // master, worker
IsHidden bool `json:"is_hidden" gorm:"type:tinyint(1)"`
NodeGroupCreateDate time.Time `json:"node_group_create_date" gorm:"type:datetime"`
NodeGroupUpdateDate time.Time `json:"node_group_update_date" gorm:"type:datetime;default:null"`
NodeGroupDeleteDate time.Time `json:"node_group_delete_date" gorm:"type:datetime;default:null"`
NodeGroupSecurityGroup string `json:"node_group_security_group" gorm:"type:varchar(50)"`
}
func (NodeGroups) TableName ¶
func (NodeGroups) TableName() string
Click to show internal directories.
Click to hide internal directories.