model

package
v0.0.0-...-29910c1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	ID             uuid.UUID `gorm:"primarykey;type:uuid;default:uuid_generate_v4()"`
	Name           string
	ContractID     uuid.UUID
	CspID          uuid.UUID
	Status         pb.ClusterStatus
	MasterFlavor   string
	MasterReplicas int32
	MasterRootSize int64
	WorkerFlavor   string
	WorkerReplicas int32
	WorkerRootSize int64
	K8sVersion     string
	Kubeconfig     string
	UpdatedAt      time.Time
	CreatedAt      time.Time
}

Cluster represents a kubernetes cluster information.

func (*Cluster) BeforeCreate

func (c *Cluster) BeforeCreate(tx *gorm.DB) (err error)

Jump to

Keyboard shortcuts

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