lb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteCloudLb = "delete from cloud_lb"
View Source
const DeleteCloudLbCert = "delete from cloud_lb_cert"
View Source
const DeleteCloudLbNginxConf = "delete from cloud_lb_nginx_conf"
View Source
const DeleteCloudLbService = "delete from cloud_lb_service"
View Source
const InsertCloudLb = "insert into cloud_lb"
View Source
const InsertCloudLbCert = "insert into cloud_lb_cert"
View Source
const InsertCloudLbService = "insert into cloud_lb_service"
View Source
const SelectCloudLb = "" /* 234-byte string literal not displayed */
View Source
const SelectCloudLbService = "" /* 308-byte string literal not displayed */
View Source
const SelectCloudLbServiceWhere = ` and (lb_name like "%?%" or service_name like "%?%")`
View Source
const SelectCloudLbWhere = `where 1=1 and (lb_name like "%?%" or description like "%?%")`
View Source
const SelectLbDomain = "select domain, service_version from cloud_lb_service "
View Source
const SelectLbDomainData = SelectCloudLbService + ` where domain = "{0}"`
View Source
const SelectLbServiceVersion = SelectLbDomain + " where domain in (?)"
View Source
const SelectUserLbs = "select lb_id from cloud_lb where create_user in (?)"
View Source
const UpdateCloudLb = "update cloud_lb"
View Source
const UpdateCloudLbCert = "update cloud_lb_cert"
View Source
const UpdateCloudLbNginxConf = "update cloud_lb_nginx_conf"
View Source
const UpdateCloudLbService = "update cloud_lb_service"
View Source
const UpdateLbExclude = "CreateTime,CreateUser,LbName"
View Source
const UpdateLbServiceExclude = "CreateTime,CreateUser,LbName"
View Source
const UpdateLbServicePercent = UpdateCloudLbService + ` set percent={0},flow_service_name="{2}" where domain="{1}"`
View Source
const UpdateLbServiceServiceVersion = UpdateCloudLbService + ` set service_version={0} where domain="{1}"`

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudLb

type CloudLb struct {
	//负载均衡名称
	LbName string
	//域名前缀
	LbDomainPrefix string
	//域名后缀
	LbDomainSuffix string
	//集群名称
	ClusterName string
	//资源空间
	ResourceName string
	//最近修改时间
	LastModifyTime string
	//创建用户
	CreateUser string
	//最近修改用户
	LastModifyUser string
	//
	Status string
	//IP地址
	LbIp string
	//负载均衡类型,nginx,haproxy
	LbType string
	//
	LbId int64
	//配额描述信息
	Description string
	//创建时间
	CreateTime string
	//
	ServiceNumber int64
	// 环境名称
	Entname string
	// cpu
	Cpu string
	// Memory
	Memory string
	// 日志挂载路径
	HostLogPath string
}

type LbServiceVersion

type LbServiceVersion struct {
	// 域名
	Domain string
	// 服务版本
	ServiceVersion string
	// 环境名称
	Entname string
}

2018-02-14 13:26

Jump to

Keyboard shortcuts

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