model

package
v3.7.0-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 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 Domain

type Domain struct {
	UUID         string `json:"uuid"`
	DomainName   string `json:"domain_name"`
	ServiceAlias string `json:"service_alias"`
	TenantID     string `json:"tenant_id"`
	TenantName   string `json:"tenant_name"`
	ServicePort  int32  `json:"service_port"`
	//域名协议处理方式,包括:http https (httptohttps)http转https (httpandhttps)http与https共存
	Protocol        string `json:"protocol"`
	AddTime         string `json:"add_time"`
	AddUser         string `json:"add_user"`
	CertificateName string `json:"certificate_name,omitempty"`
	Certificate     string `json:"certificate,omitempty"`
	PrivateKey      string `json:"private_key,omitempty"`
}

Domain 域名实体 TenantName+ServiceAlias+ServicePort ->PoolName

type HostNode

type HostNode struct {
	UUID            string            `json:"uuid"`
	HostName        string            `json:"host_name"`
	InternalIP      string            `json:"internal_ip"`
	ExternalIP      string            `json:"external_ip"`
	AvailableMemory int64             `json:"available_memory"`
	AvailableCPU    int64             `json:"available_cpu"`
	Role            string            `json:"role"`   //计算节点 or 管理节点
	Status          string            `json:"status"` //节点状态 create,init,running,stop,delete
	Labels          map[string]string `json:"labels"`
	Unschedulable   bool              `json:"unschedulable"` //不可调度
	NodeStatus      *v1.NodeStatus    `json:"node_status,omitempty"`
}

HostNode 集群节点实体

Jump to

Keyboard shortcuts

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