Documentation
¶
Index ¶
- type BGPIP
- func (s *BGPIP) CreateLevel4Rule(p *CreateLevel4RuleParams) (resp *CreateLevel4RuleResponse, err error)
- func (s *BGPIP) DeleteLevel4Rule(p *DeleteLevel4RuleParams) (resp *DeleteLevel4RuleResponse, err error)
- func (s *BGPIP) DescribeLevel4Rules(p *DescribeLevel4RulesParams) (resp *DescribeLevel4RulesResponse, err error)
- func (s *BGPIP) ModifyElasticLimit(p *ModifyElasticLimitParams) (resp *ModifyElasticLimitResponse, err error)
- func (s *BGPIP) ModifyInstanceName(p *ModifyInstanceNameParams) (resp *ModifyInstanceNameResponse, err error)
- func (s *BGPIP) ModifyLevel4HealthCheck(p *ModifyLevel4HealthCheckParams) (resp *ModifyLevel4HealthCheckResponse, err error)
- func (s *BGPIP) ModifyLevel4KeepTime(p *ModifyLevel4KeepTimeParams) (resp *ModifyLevel4KeepTimeResponse, err error)
- func (s *BGPIP) ModifyLevel4Rule(p *ModifyLevel4RuleParams) (resp *ModifyLevel4RuleResponse, err error)
- type CreateLevel4RuleParams
- type CreateLevel4RuleResponse
- type DeleteLevel4RuleParams
- type DeleteLevel4RuleResponse
- type DescribeLevel4RulesParams
- type DescribeLevel4RulesResponse
- type HealthCheckInfo
- type L4RuleSource
- type Level4Protocol
- type Level4RuleDetail
- type ModifyElasticLimitParams
- type ModifyElasticLimitResponse
- type ModifyInstanceNameParams
- type ModifyInstanceNameResponse
- type ModifyLevel4HealthCheckParams
- type ModifyLevel4HealthCheckResponse
- type ModifyLevel4KeepTimeParams
- type ModifyLevel4KeepTimeResponse
- type ModifyLevel4RuleParams
- type ModifyLevel4RuleResponse
- type SourceType
- type SwitchStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BGPIP ¶
type BGPIP struct {
// contains filtered or unexported fields
}
BGPIP BGP高防
func (*BGPIP) CreateLevel4Rule ¶
func (s *BGPIP) CreateLevel4Rule(p *CreateLevel4RuleParams) (resp *CreateLevel4RuleResponse, err error)
CreateLevel4Rule BGP高防四层规则创建
func (*BGPIP) DeleteLevel4Rule ¶
func (s *BGPIP) DeleteLevel4Rule(p *DeleteLevel4RuleParams) (resp *DeleteLevel4RuleResponse, err error)
DeleteLevel4Rule BGP高防四层规则删除
func (*BGPIP) DescribeLevel4Rules ¶
func (s *BGPIP) DescribeLevel4Rules(p *DescribeLevel4RulesParams) (resp *DescribeLevel4RulesResponse, err error)
DescribeLevel4Rules BGP高防四层规则列表
func (*BGPIP) ModifyElasticLimit ¶
func (s *BGPIP) ModifyElasticLimit(p *ModifyElasticLimitParams) (resp *ModifyElasticLimitResponse, err error)
ModifyElasticLimit BGP高防弹性防护带宽修改
func (*BGPIP) ModifyInstanceName ¶
func (s *BGPIP) ModifyInstanceName(p *ModifyInstanceNameParams) (resp *ModifyInstanceNameResponse, err error)
ModifyInstanceName BGP高防实例名称修改
func (*BGPIP) ModifyLevel4HealthCheck ¶
func (s *BGPIP) ModifyLevel4HealthCheck(p *ModifyLevel4HealthCheckParams) (resp *ModifyLevel4HealthCheckResponse, err error)
ModifyLevel4HealthCheck BGP高防四层健康检查修改
func (*BGPIP) ModifyLevel4KeepTime ¶
func (s *BGPIP) ModifyLevel4KeepTime(p *ModifyLevel4KeepTimeParams) (resp *ModifyLevel4KeepTimeResponse, err error)
ModifyLevel4KeepTime BGP高防四层会话保持修改
func (*BGPIP) ModifyLevel4Rule ¶
func (s *BGPIP) ModifyLevel4Rule(p *ModifyLevel4RuleParams) (resp *ModifyLevel4RuleResponse, err error)
ModifyLevel4Rule BGP高防四层规则修改
type CreateLevel4RuleParams ¶
type CreateLevel4RuleParams struct { RegionID string `json:"region_id"` // 地域 id ResourceID string `json:"resource_id"` // 高防实例 id RuleName string `json:"rule_name"` // 规则名称 Protocol Level4Protocol `json:"protocol"` // 四层协议,取值:TCP, UDP VirtualPort uint16 `json:"virtual_port"` // 转发端口 SourcePort uint16 `json:"source_port"` // 源站端口 SourceType SourceType `json:"source_type"` // 回源方式,取值[1(域名回源),2(IP回源)] KeepTime uint32 `json:"keep_time"` // 会话保持时间,单位秒 KeepEnable SwitchStatus `json:"keep_enable"` // 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)] SourceList []L4RuleSource `json:"source_list"` // 回源列表 LbType int `json:"lb_type"` // 负载均衡方式,取值: 1(加权轮询) }
CreateLevel4RuleParams BGP高防四层规则创建参数
type CreateLevel4RuleResponse ¶
type CreateLevel4RuleResponse struct {
RequestID string `json:"request_id"`
}
CreateLevel4RuleResponse BGP高防四层规则创建返回数据
type DeleteLevel4RuleParams ¶
type DeleteLevel4RuleParams struct { RegionID string `json:"region_id"` // 地域 id ResourceID string `json:"resource_id"` // 高防实例 id RuleIDList []string `json:"rule_id_list"` // 四层规则 id 列表 }
DeleteLevel4RuleParams BGP高防四层规则删除参数
type DeleteLevel4RuleResponse ¶
type DeleteLevel4RuleResponse struct {
RequestID string `json:"request_id"`
}
DeleteLevel4RuleResponse BGP高防四层规则删除返回数据
type DescribeLevel4RulesParams ¶
type DescribeLevel4RulesParams struct { RegionID string `json:"region_id"` // 地域 id ResourceID string `json:"resource_id"` // 高防实例 id Page *int `json:"page,omitempty"` // 查询页码 Size *int `json:"size,omitempty"` // 分页大小 }
DescribeLevel4RulesParams BGP高防四层规则列表参数
type DescribeLevel4RulesResponse ¶
type DescribeLevel4RulesResponse struct { Page int `json:"page"` // 查询页码 Size int `json:"size"` // 分页大小 Total int `json:"total"` // 总数 Data []Level4RuleDetail `json:"data"` // 规则列表 }
DescribeLevel4RulesResponse BGP高防四层规则列表返回数据
type HealthCheckInfo ¶
type HealthCheckInfo struct { Protocol string `json:"protocol"` // 四层协议,取值:TCP, UDP VirtualPort int `json:"virtual_port"` // 转发端口 RuleID string `json:"rule_id"` // 规则id Enable int `json:"enable"` // 开启状态,1表示开启,0表示关闭 Interval int `json:"interval"` // 检测间隔时间,单位秒, 检查间隔必须大于响应超时 KickNum int `json:"kick_num"` // 不健康阈值,单位次 AliveNum int `json:"alive_num"` // 健康阈值,单位次 TimeOut int `json:"timeout"` // 响应超时时间,单位秒 ErrMsg string `json:"err_msg"` // 健康检查错误信息 }
HealthCheckInfo 四层健康检查信息
type L4RuleSource ¶
type L4RuleSource struct { Source string `tson:"Source" json:"source"` // 回源地址 Weight int `tson:"Weight" json:"weight"` // 权重 }
L4RuleSource 四层规则信息
type Level4Protocol ¶
type Level4Protocol string
Level4Protocol 四层协议
const ( Level4ProtocolTCP Level4Protocol = "TCP" Level4ProtocolUDP Level4Protocol = "UDP" )
TCP和UDP协议
type Level4RuleDetail ¶
type Level4RuleDetail struct { RuleName string `json:"rule_name"` // 规则名称 RuleID string `json:"rule_id"` // 规则 id Protocol string `json:"protocol"` // 四层协议,取值:TCP, UDP VirtualPort int `json:"virtual_port"` // 转发端口 SourcePort int `json:"source_port"` // 源站端口 SourceType int `json:"source_type"` // 回源方式,取值[1(域名回源),2(IP回源)] KeepTime int `json:"keep_time"` // 会话保持时间,单位秒 KeepEnable int `json:"keep_enable"` // 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)] SourceList []L4RuleSource `json:"source_list"` // 回源列表 HealthCheck HealthCheckInfo `json:"health_check"` }
Level4RuleDetail 四层规则详情
type ModifyElasticLimitParams ¶
type ModifyElasticLimitParams struct { RegionID string `json:"region_id"` // 地域 id ResourceID string `json:"resource_id"` // 高防实例 id ElasticLimit int `json:"elastic_limit"` }
ModifyElasticLimitParams BGP高防弹性防护带宽修改参数
type ModifyElasticLimitResponse ¶
type ModifyElasticLimitResponse struct {
RequestID string `json:"request_id"`
}
ModifyElasticLimitResponse BGP高防弹性防护带宽修改返回数据
type ModifyInstanceNameParams ¶
type ModifyInstanceNameParams struct { RegionID string `json:"region_id"` // 地域 id ResourceID string `json:"resource_id"` // 高防实例 id Name string `json:"name"` // 新名称 }
ModifyInstanceNameParams BGP高防实例名称修改参数
type ModifyInstanceNameResponse ¶
type ModifyInstanceNameResponse struct {
RequestID string `json:"request_id"`
}
ModifyInstanceNameResponse BGP高防实例名称修改返回数据
type ModifyLevel4HealthCheckParams ¶
type ModifyLevel4HealthCheckParams struct { RegionID string `json:"region_id"` // 地域 id ResourceID string `json:"resource_id"` // 高防实例 id RuleID string `json:"rule_id"` // 四层规则 id Enable SwitchStatus `json:"enable"` // 开启状态,1表示开启,0表示关闭 Interval uint32 `json:"interval"` // 检测间隔时间,单位:秒, 检查间隔必须大于响应超时 KickNum uint32 `json:"kick_num"` // 不健康阈值,单位:次 AliveNum uint32 `json:"alive_num"` // 健康阈值,单位:次 TimeOut uint32 `json:"timeout"` // 响应超时时间,单位:秒 }
ModifyLevel4HealthCheckParams BGP高防四层健康检查修改参数
type ModifyLevel4HealthCheckResponse ¶
type ModifyLevel4HealthCheckResponse struct {
RequestID string `json:"request_id"`
}
ModifyLevel4HealthCheckResponse BGP高防四层健康检查修改返回数据
type ModifyLevel4KeepTimeParams ¶
type ModifyLevel4KeepTimeParams struct { RegionID string `json:"region_id"` // 地域 id ResourceID string `json:"resource_id"` // 高防实例 id RuleID string `json:"rule_id"` // 四层规则 id KeepTime uint32 `json:"keep_time"` // 会话保持时间,单位:秒 KeepEnable SwitchStatus `json:"keep_enable"` // 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)] }
ModifyLevel4KeepTimeParams BGP高防四层会话保持修改参数
type ModifyLevel4KeepTimeResponse ¶
type ModifyLevel4KeepTimeResponse struct {
RequestID string `json:"request_id"`
}
ModifyLevel4KeepTimeResponse BGP高防四层会话保持修改返回数据
type ModifyLevel4RuleParams ¶
type ModifyLevel4RuleParams struct { RegionID string `json:"region_id"` // 地域 id ResourceID string `json:"resource_id"` // 高防实例 id RuleID string `json:"rule_id"` // 四层规则 id Protocol Level4Protocol `json:"protocol"` // 四层协议,取值:TCP, UDP RuleName string `json:"rule_name"` // 规则名称 VirtualPort uint16 `json:"virtual_port"` // 转发端口 SourcePort uint16 `json:"source_port"` // 源站端口 SourceType SourceType `json:"source_type"` // 回源方式,取值[1(域名回源),2(IP回源)] SourceList []L4RuleSource `json:"source_list"` // 回源列表 LbType int `json:"lb_type"` // 负载均衡方式,取值: 1(加权轮询) }
ModifyLevel4RuleParams BGP高防四层规则修改参数
type ModifyLevel4RuleResponse ¶
type ModifyLevel4RuleResponse struct {
RequestID string `json:"request_id"`
}
ModifyLevel4RuleResponse BGP高防四层规则修改返回数据
type SourceType ¶
type SourceType uint8
SourceType 源站类型
const ( SourceTypeDOMAIN SourceType = 1 SourceTypeIP SourceType = 2 )
域名和IP源站
type SwitchStatus ¶
type SwitchStatus uint8
SwitchStatus 开关状态
const ( SwitchStatusOn SwitchStatus = 1 SwitchStatusOff SwitchStatus = 0 )
开关常量