Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SLBClient ¶
type SLBClient struct {
// contains filtered or unexported fields
}
func (*SLBClient) CreateServers ¶
func (c *SLBClient) CreateServers(ctx context.Context, groupId string, servers *[]alb.AddServersToServerGroupServers) ( *alb.AddServersToServerGroupResponse, error)
CreateServers 添加服务器向已经存在的服务器组 alb
func (*SLBClient) RemoveServer ¶
func (c *SLBClient) RemoveServer(ctx context.Context, groupId string, servers *[]alb.RemoveServersFromServerGroupServers) ( *alb.RemoveServersFromServerGroupResponse, error)
type ServerList ¶
type ServerList struct { ServerId string // 服务器为阿里云的实例取值,如果是ip 为ip ServerIp string // 后端服务的IP Port uint // 默认是80 ServerType string // 后端服务器的类型 Ecs|Eni|Eci|Ip Description string // 后端服务器的描述 /^([^\x00-\xff]|[\w.,;/@-]){2,256}$/ Weight uint // 后端服务器的权重 0~ 100 之间,默认是100 ClientToken string // 保证每次请求的幂等 DryRun bool // 是否预检本次请求,不创建资源,只检测必须参数 }
Click to show internal directories.
Click to hide internal directories.