Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WatchClusterChan chan *Event WatchNodeChan chan *Event )
Functions ¶
func CreateTables ¶
func CreateTables()
Types ¶
type Cluster ¶
type Cluster struct { ID string `gorm:"primaryKey"` Name string Version string PodNetCIDR string Nodes []Node Registry string gorm.Model }
func CreateCluster ¶
func ListAllCluster ¶
func ListAllCluster() []Cluster
func QueryClusterByID ¶
func (*Cluster) AfterCreate ¶
Before cluster object create
Click to show internal directories.
Click to hide internal directories.