model

package
v0.0.0-...-f22f8d3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: AGPL-3.0 Imports: 5 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           string `gorm:"primarykey"`
	Name         string
	ContractID   string
	CspID        uuid.UUID
	WorkflowId   string
	Status       pb.ClusterStatus
	StatusDesc   string
	SshKeyName   string
	Region       string
	NumOfAz      int32
	MachineType  string
	MinSizePerAz int32
	MaxSizePerAz int32
	Kubeconfig   string
	Creator      uuid.UUID
	Description  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