model

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: LGPL-3.0 Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfo

type ClusterInfo struct {
	NodeAvailPorts   []NodeAvailPorts `json:"nodeAvailPorts"`
	Storage          []Storage        `json:"storage"`
	EnterpriseID     string           `json:"enterpriseID"` // enterprise's uuid
	InstallID        string           `json:"installID"`    // install uuid
	InstallVersion   string           `json:"installVersion"`
	HighAvailability bool             `json:"highAvailability"`
}

ClusterInfo cluster info used for config

type ClusterStatus

type ClusterStatus struct {
	TestMode    bool         `json:"testMode"`
	FinalStatus GlobalStatus `json:"final_status"`
	ClusterInfo ClusterInfo  `json:"clusterInfo"`
	Reasons     []string     `json:"reasons"`
}

ClusterStatus cluster global status

type ComponseInfo

type ComponseInfo struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	Status      string `json:"status"`
	HealthCount int    `json:"healthCount"`
	TotalCount  int    `json:"totalCount"`
	Message     string `json:"message"`
}

ComponseInfo componse info

type Database

type Database struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
}

Database defines the connection information of database.

type EtcdCertInfo

type EtcdCertInfo struct {
	CaFile   string `json:"caFile"`
	CertFile string `json:"certFile"`
	KeyFile  string `json:"keyFile"`
}

EtcdCertInfo etcd cert info

type EtcdConfig

type EtcdConfig struct {
	// Endpoints is a list of URLs.
	Endpoints []string `json:"endpoints"`
	// Secret to mount to read certificate files for tls.
	CertInfo EtcdCertInfo `json:"certInfo"`
}

EtcdConfig defines the configuration of etcd client.

type GatewayNode

type GatewayNode struct {
	NodeName string `json:"nodeName"`
	NodeIP   string `json:"nodeIP"`
	Ports    []int  `json:"ports"`
}

GatewayNode gateway

type GlobalConfigs

type GlobalConfigs struct {
	ImageHub          ImageHub   `json:"imageHub"`
	RegionDatabase    Database   `json:"regionDatabase"`
	UIDatabase        Database   `json:"uiDatabase"`
	EtcdConfig        EtcdConfig `json:"etcdConfig"`
	HTTPDomain        string     `json:"HTTPDomain"`
	GatewayIngressIPs []string   `json:"gatewayIngressIPs"`
	OnlyInstallRegion bool       `json:"only_install_region"`
}

GlobalConfigs check result

type GlobalStatus

type GlobalStatus string

GlobalStatus -

const (
	// Waiting waiting waiting status
	Waiting GlobalStatus = "Waiting"
	// Initing initing status
	Initing GlobalStatus = "Initing"
	//Setting setting status
	Setting GlobalStatus = "Setting"
	//Installing installing status
	Installing GlobalStatus = "Installing"
	//Running running status
	Running GlobalStatus = "Running"
	//UnInstalling uninstalling status
	UnInstalling GlobalStatus = "UnInstalling"
)

type ImageHub

type ImageHub struct {
	Domain    string `json:"domain"`
	Namespace string `json:"namespace"`
	Username  string `json:"username"`
	Password  string `json:"password"`
}

ImageHub image hub

type InstallStatus

type InstallStatus struct {
	StepName string `json:"stepName"`
	Status   string `json:"status"`
	Progress int    `json:"progress"`
	Message  string `json:"message"`
	Reason   string `json:"reason"`
}

InstallStatus install status

type NodeAvailPorts

type NodeAvailPorts struct {
	Ports    []int  `json:"port"`
	NodeIP   string `json:"nodeIP"`
	NodeName string `json:"nodeName"`
}

NodeAvailPorts aval port

type RbdComponent

type RbdComponent struct {
}

RbdComponent rbd component

type StatusRes

type StatusRes struct {
	FinalStatus string          `json:"finalStatus"`
	StatusList  []InstallStatus `json:"statusList"`
}

StatusRes StatusRes

type Storage

type Storage struct {
	Name        string `json:"name"`
	Provisioner string `json:"provisioner"`
}

Storage storage

type StorageOpts

type StorageOpts struct {
	Name        string `json:"name"`
	Provisioner string `json:"provisioner"`
}

StorageOpts storage opts

type User

type User struct {
	gorm.Model
	Username string `json:"username" gorm:"username" `
	Password string `json:"password" gorm:"password"`
}

User represents the user model

Jump to

Keyboard shortcuts

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