model

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

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"`
}

func (*AuditLog) TableName

func (m *AuditLog) TableName() string

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)"`
	ClusterSharedSecurityGroup   string         `json:"cluster_shared_security_group" gorm:"type:varchar(50)"`
	ApplicationCredentialID      string         `json:"application_credential_id" gorm:"type:varchar(36)"`
	DeleteState                  string         `` /* 162-byte string literal not displayed */
}

func (Cluster) TableName

func (Cluster) TableName() string

type Error added in v1.7.0

type Error struct {
	ID           uint64    `json:"id" gorm:"primary_key;auto_increment"`
	ClusterUUID  string    `json:"cluster_uuid" gorm:"not null"`
	ErrorMessage string    `json:"error_message" gorm:"not null"`
	CreatedAt    time.Time `json:"created_at" gorm:"not null"`
}

func (Error) TableName added in v1.7.0

func (Error) TableName() string

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"`
	NodeGroupTaints        datatypes.JSON `json:"node_group_taints" 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

type Resource added in v1.7.0

type Resource struct {
	ID           int64  `json:"-" gorm:"primary_key;auto_increment"`
	ClusterUUID  string `json:"cluster_uuid" gorm:"type:varchar(36)"`
	ResourceType string `json:"resource_type" gorm:"type:varchar(30)"`
	ResourceUUID string `json:"resource_uuid" gorm:"type:varchar(36)"`
}

func (Resource) TableName added in v1.7.0

func (Resource) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL