models

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 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 K8SCluster

type K8SCluster struct {
	ID           primitive.ObjectID      `json:"id"             bson:"_id"`
	Name         string                  `json:"name"           bson:"name"`
	Tags         []string                `json:"tags"           bson:"tags"`
	Description  string                  `json:"description"    bson:"description"`
	Namespace    string                  `json:"namespace"      bson:"namespace"`
	Info         *K8SClusterInfo         `json:"info,omitempty" bson:"info,omitempty"`
	Status       config.K8SClusterStatus `json:"status"         bson:"status"`
	Error        string                  `json:"error"          bson:"error"`
	Yaml         string                  `json:"yaml"           bson:"yaml"`
	Production   bool                    `json:"production"     bson:"production"`
	CreatedAt    int64                   `json:"createdAt"      bson:"createdAt"`
	CreatedBy    string                  `json:"createdBy"      bson:"createdBy"`
	Disconnected bool                    `json:"-"              bson:"disconnected"`
	Token        string                  `json:"token"          bson:"-"`
}

func (K8SCluster) TableName

func (K8SCluster) TableName() string

type K8SClusterInfo

type K8SClusterInfo struct {
	Nodes   int    `json:"nodes"    bson:"nodes"`
	Version string `json:"version"  bson:"version"`
	CPU     string `json:"cpu"      bson:"cpu"`
	Memory  string `json:"memory"   bson:"memory"`
}

Jump to

Keyboard shortcuts

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