models

package
v0.0.0-...-400b3ab Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterStatus = newClusterStatus()
View Source
var ClusterType = newClusterType()
View Source
var Tables = newTableRegistry()

Functions

func ClusterQuery

func ClusterQuery(dao *daos.Dao) *dbx.SelectQuery

func FindClusterById

func FindClusterById(dao *daos.Dao, id string) (*models.Record, error)

func FindClusterByName

func FindClusterByName(dao *daos.Dao, name string) (*models.Record, error)

func FindLast10Clusters

func FindLast10Clusters(dao *daos.Dao) ([]*models.Record, error)

Types

type Chart

type Chart struct {
	Name          string `json:"name"`
	Description   string `json:"description"`
	DefaultValues string `json:"default_values"`
}

type Cluster

type Cluster struct {
	models.BaseModel

	Name    string `json:"name"`
	Type    string `json:"type"`
	CPU     int    `json:"cpu"`     // number of cores
	Memory  int    `json:"memory"`  // in GB
	Storage int    `json:"storage"` // in GB
	Status  string `json:"status"`
}

func (*Cluster) TableName

func (r *Cluster) TableName() string

Jump to

Keyboard shortcuts

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