aliyun

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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 InitALB

func InitALB(region, accessKey, accessSecret string) (SLBClient, error)

InitALB 初始化slb

func (*SLBClient) CreateServers

CreateServers 添加服务器向已经存在的服务器组 alb

func (*SLBClient) RemoveServer

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   // 是否预检本次请求,不创建资源,只检测必须参数
}

Jump to

Keyboard shortcuts

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