model

package
v0.0.0-...-67d514a Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 {
	Default  bool   `json:"default" validate:"default|required"`
	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 {
	Default bool `json:"default" validate:"default|required"`
	// Endpoints is a list of URLs.
	Endpoints []string `json:"endpoints"`
	// Whether to use tls to connect to etcd
	UseTLS bool `json:"useTLS"`
	// 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"`
	Selected bool   `json:"selected"`
}

GatewayNode gateway

type GlobalConfigs

type GlobalConfigs struct {
	ImageHub          ImageHub      `json:"imageHub"`
	RegionDatabase    Database      `json:"regionDatabase"`
	UIDatabase        Database      `json:"uiDatabase"`
	EtcdConfig        EtcdConfig    `json:"etcdConfig"`
	GatewayNodes      []GatewayNode `json:"gatewayNodes"`
	HTTPDomain        HTTPDomain    `json:"HTTPDomain"`
	GatewayIngressIPs []string      `json:"gatewayIngressIPs"`
	Storage           Storage       `json:"storage"`
}

GlobalConfigs check result

type HTTPDomain

type HTTPDomain struct {
	Default bool     `json:"default"`
	Domain  []string `json:"domain"`
}

HTTPDomain http domain

type ImageHub

type ImageHub struct {
	Default   bool   `json:"default" validate:"default|required"`
	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 {
	Default          bool          `json:"default"`
	StorageClassName string        `json:"storageClassName"`
	Opts             []StorageOpts `json:"opts"`
}

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