dayu

package
v1.81.139 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DAYU_RESOURCE_TYPE_BGPIP  = "bgpip"
	DAYU_RESOURCE_TYPE_BGP    = "bgp"
	DAYU_RESOURCE_TYPE_BGPMUL = "bgp-multip"
	DAYU_RESOURCE_TYPE_NET    = "net"
)
View Source
const (
	DAYU_APP_PLATFORM_PC     = "PC"
	DAYU_APP_PLATFORM_MOBILE = "MOBILE"
	DAYU_APP_PLATFORM_TV     = "TV"
	DAYU_APP_PLATFORM_SERVER = "SERVER"
)
View Source
const (
	DAYU_PROTOCOL_TCP  = "tcp"
	DAYU_PROTOCOL_UDP  = "udp"
	DAYU_PROTOCOL_ICMP = "icmp"
	DAYU_PROTOCOL_ALL  = "all"
)
View Source
const (
	DAYU_MATCH_TYPE_SUNDAY = "sunday"
	DAYU_MATCH_TYPE_PCRE   = "pcre"
)
View Source
const (
	DAYU_MATCH_SWITCH_ON_L5 = "begin_l5"
	DAYU_MATCH_SWITCH_OFF   = "no_match"
)
View Source
const (
	DAYU_IP_TYPE_BLACK = "black"
	DAYU_IP_TYPE_WHITE = "white"
)
View Source
const (
	DAYU_PACKET_ACTION_DROP             = "drop"
	DAYU_PACKET_ACTION_TRANSMIT         = "transmit"
	DAYU_PACKET_PROTOCOL_DROP_BLACK     = "drop_black"
	DAYU_PACKET_PROTOCOL_DROP_RST       = "drop_rst"
	DAYU_PACKET_PROTOCOL_DROP_BLACK_RST = "drop_black_rst"
)
View Source
const (
	DAYU_PORT_ACTION_DROP     = "drop"
	DAYU_PORT_ACTION_TRANSMIT = "transmit"
)
View Source
const (
	DAYU_APP_TYPE_WEB   = "WEB"
	DAYU_APP_TYPE_GAME  = "GAME"
	DAYU_APP_TYPE_APP   = "APP"
	DAYU_APP_TYPE_OTHER = "OTHER"
)
View Source
const (
	DAYU_BOOL_FLAG_TRUE  = "yes"
	DAYU_BOOL_FLAG_FALSE = "no"
)
View Source
const (
	DAYU_L7_RULE_PROTOCOL_HTTP  = "http"
	DAYU_L7_RULE_PROTOCOL_HTTPS = "https"
)
View Source
const (
	DAYU_RULE_METHOD_GET  = "GET"
	DAYU_RULE_METHOD_HEAD = "HEAD"
)
View Source
const (
	DAYU_L7_RULE_SOURCE_TYPE_HOST = 1
	DAYU_L7_RULE_SOURCE_TYPE_IP   = 2
)
View Source
const (
	DAYU_L7_HTTPS_SWITCH_ON_DEFAULT = 20000
	DAYU_L7_HTTPS_SWITCH_OFF        = 0
)
View Source
const (
	DAYU_CC_POLICY_ACTION_DROP = "drop"
	DAYU_CC_POLICY_ACTION_ALG  = "alg"
)
View Source
const (
	DAYU_CC_POLICY_SMODE_MATCH       = "matching"
	DAYU_CC_POLICY_SMODE_SPEED_LIMIT = "speedlimit"
)
View Source
const (
	DAYU_CC_POLICY_CHECK_TYPE_HOST    = "host"
	DAYU_CC_POLICY_CHECK_TYPE_CGI     = "cgi"
	DAYU_CC_POLICY_CHECK_TYPE_UA      = "ua"
	DAYU_CC_POLICY_CHECK_TYPE_REFERER = "referer"
)
View Source
const (
	DAYU_CC_POLICY_CHECK_OP_INCLUDE     = "include"
	DAYU_CC_POLICY_CHECK_OP_NOT_INCLUDE = "not_include"
	DAYU_CC_POLICY_CHECK_OP_EQUAL       = "equal"
)
View Source
const (
	DAYU_L4_RULE_PROTOCOL_TCP = "TCP"
	DAYU_L4_RULE_PROTOCOL_UDP = "UDP"
)
View Source
const (
	DAYU_L7_STATUS_SET_DONE = 0
	DAYU_L7_STATUS_SETTING  = 1
	DAYU_L7_STATUS_SET_FAIL = 2
	DAYU_L7_STATUS_DEL_DONE = 3
	DAYU_L7_STATUS_DEL_FAIL = 5
	DAYU_L7_STATUS_SET_WAIT = 6
	DAYU_L7_STATUS_DEL_WAIT = 7
	DAYU_L7_STATUS_SSL_WAIT = 8
)
View Source
const (
	DAYU_L7_HEALTH_STATUS_SET_DONE = 0
	DAYU_L7_HEALTH_STATUS_SETTING  = 1
	DAYU_L7_HEALTH_STATUS_SET_FAIL = 2
)
View Source
const BUSINESS_BGP_MULTIP = "bgp-multip"
View Source
const DAYU_BOUNDSTATUS_IDLE = "idle"
View Source
const ISP_CODE_BGP = 5
View Source
const RESPONSE_SUCCESS_CODE = "Success"

Variables

View Source
var DAYU_RESOURCE_TYPE_HTTPS = []string{DAYU_RESOURCE_TYPE_BGPIP}

Functions

func DataSourceTencentCloudDayuCCHttpPolicies

func DataSourceTencentCloudDayuCCHttpPolicies() *schema.Resource

func DataSourceTencentCloudDayuCCHttpsPolicies

func DataSourceTencentCloudDayuCCHttpsPolicies() *schema.Resource

func DataSourceTencentCloudDayuDdosPolicies

func DataSourceTencentCloudDayuDdosPolicies() *schema.Resource

func DataSourceTencentCloudDayuDdosPolicyAttachments

func DataSourceTencentCloudDayuDdosPolicyAttachments() *schema.Resource

func DataSourceTencentCloudDayuDdosPolicyCases

func DataSourceTencentCloudDayuDdosPolicyCases() *schema.Resource

func DataSourceTencentCloudDayuL4Rules

func DataSourceTencentCloudDayuL4Rules() *schema.Resource

func DataSourceTencentCloudDayuL7Rules

func DataSourceTencentCloudDayuL7Rules() *schema.Resource

func ResourceTencentCloudDayuCCHttpPolicy

func ResourceTencentCloudDayuCCHttpPolicy() *schema.Resource

func ResourceTencentCloudDayuCCHttpsPolicy

func ResourceTencentCloudDayuCCHttpsPolicy() *schema.Resource

func ResourceTencentCloudDayuDdosPolicy

func ResourceTencentCloudDayuDdosPolicy() *schema.Resource

func ResourceTencentCloudDayuDdosPolicyAttachment

func ResourceTencentCloudDayuDdosPolicyAttachment() *schema.Resource

func ResourceTencentCloudDayuDdosPolicyCase

func ResourceTencentCloudDayuDdosPolicyCase() *schema.Resource

func ResourceTencentCloudDayuL4Rule

func ResourceTencentCloudDayuL4Rule() *schema.Resource

func ResourceTencentCloudDayuL7Rule

func ResourceTencentCloudDayuL7Rule() *schema.Resource

Types

type DayuService

type DayuService struct {
	// contains filtered or unexported fields
}

func NewDayuService

func NewDayuService(client *connectivity.TencentCloudClient) DayuService

func (*DayuService) BindDdosPolicy

func (me *DayuService) BindDdosPolicy(ctx context.Context, resourceId string, resourceType string, policyId string) (errRet error)

func (*DayuService) CreateCCSelfdefinePolicy

func (me *DayuService) CreateCCSelfdefinePolicy(ctx context.Context, resourceType string, resourceId string, ccPolicy dayu.CCPolicy) (policyId string, errRet error)

func (*DayuService) CreateDdosPolicy

func (me *DayuService) CreateDdosPolicy(ctx context.Context, resourceType string, name string, ddosPolicyDropOption []*dayu.DDoSPolicyDropOption, ddosPolicyPortLimit []*dayu.DDoSPolicyPortLimit, ipBlackWhite []*dayu.IpBlackWhite, ddosPacketFilter []*dayu.DDoSPolicyPacketFilter, waterPrintPolicy []*dayu.WaterPrintPolicy) (policyId string, errRet error)

func (*DayuService) CreateDdosPolicyCase

func (me *DayuService) CreateDdosPolicyCase(ctx context.Context, request *dayu.CreateDDoSPolicyCaseRequest) (sceneId string, errRet error)

func (*DayuService) CreateL4Rule

func (me *DayuService) CreateL4Rule(ctx context.Context, resourceType string, resourceId string, rule dayu.L4RuleEntry) (ruleId string, errRet error)

func (*DayuService) CreateL7Rule

func (me *DayuService) CreateL7Rule(ctx context.Context, resourceType string, resourceId string, rule dayu.L7RuleEntry) (ruleId string, errRet error)

func (*DayuService) CreateL7RuleV2

func (me *DayuService) CreateL7RuleV2(ctx context.Context, business string, resourceId string, resourceIp string, ruleList []interface{}) (errRet error)

func (*DayuService) CreateNewL4Rules

func (me *DayuService) CreateNewL4Rules(ctx context.Context, business string, id string, vip string, ruleList []interface{}) (errRet error)

func (*DayuService) DeleteCCSelfdefinePolicy

func (me *DayuService) DeleteCCSelfdefinePolicy(ctx context.Context, resourceType string, resourceId string, policyId string) (errRet error)

func (*DayuService) DeleteDdosPolicy

func (me *DayuService) DeleteDdosPolicy(ctx context.Context, resourceType string, policyId string) (errRet error)

func (*DayuService) DeleteDdosPolicyCase

func (me *DayuService) DeleteDdosPolicyCase(ctx context.Context, resourceType string, sceneId string) (errRet error)

func (*DayuService) DeleteL4Rule

func (me *DayuService) DeleteL4Rule(ctx context.Context, resourceType string, resourceId string, ruleId string) (errRet error)

func (*DayuService) DeleteL7Rule

func (me *DayuService) DeleteL7Rule(ctx context.Context, resourceType string, resourceId string, ruleId string) (errRet error)

func (*DayuService) DeleteL7RulesV2

func (me *DayuService) DeleteL7RulesV2(ctx context.Context, resourceType string, resourceId string, resourceIp string, ruleId string) (errRet error)

func (*DayuService) DeleteNewL4Rules

func (me *DayuService) DeleteNewL4Rules(ctx context.Context, business string, id string, ip string, ruleIds []string) (errRet error)

func (*DayuService) DescribeCCSelfdefinePolicies

func (me *DayuService) DescribeCCSelfdefinePolicies(ctx context.Context, resourceType string, resourceId string, policyName string, policyId string) (infos []*dayu.CCPolicy, has bool, errRet error)

func (*DayuService) DescribeCCSelfdefinePolicy

func (me *DayuService) DescribeCCSelfdefinePolicy(ctx context.Context, resourceType string, resourceId string, policyId string) (infos *dayu.CCPolicy, has bool, errRet error)

func (*DayuService) DescribeDdosPolicies

func (me *DayuService) DescribeDdosPolicies(ctx context.Context, resourceType string, policyId string) (ddosPolicies []*dayu.DDosPolicy, errRet error)

func (*DayuService) DescribeDdosPolicy

func (me *DayuService) DescribeDdosPolicy(ctx context.Context, resourceType string, policyId string) (ddosPolicy dayu.DDosPolicy, has bool, errRet error)

func (*DayuService) DescribeDdosPolicyAttachments

func (me *DayuService) DescribeDdosPolicyAttachments(ctx context.Context, resourceId string, resourceType string, policyId string) (attachments []map[string]interface{}, has bool, errRet error)

func (*DayuService) DescribeDdosPolicyCase

func (me *DayuService) DescribeDdosPolicyCase(ctx context.Context, resourceType string, sceneId string) (ddosPolicyCase dayu.KeyValueRecord, has bool, errRet error)

func (*DayuService) DescribeL4Health

func (me *DayuService) DescribeL4Health(ctx context.Context, resourceType string, resourceId string, ruleId string) (healthCheck *dayu.L4HealthConfig, has bool, errRet error)

func (*DayuService) DescribeL4Rule

func (me *DayuService) DescribeL4Rule(ctx context.Context, resourceType string, resourceId string, ruleId string) (infos *dayu.L4RuleEntry, health *dayu.L4RuleHealth, has bool, errRet error)

func (*DayuService) DescribeL4Rules

func (me *DayuService) DescribeL4Rules(ctx context.Context, resourceType string, resourceId string, ruleName string, ruleId string) (infos []*dayu.L4RuleEntry, healths []*dayu.L4RuleHealth, has bool, errRet error)

func (*DayuService) DescribeL7Health

func (me *DayuService) DescribeL7Health(ctx context.Context, resourceType string, resourceId string, ruleId string) (healthCheck *dayu.L7HealthConfig, has bool, errRet error)

func (*DayuService) DescribeL7Rule

func (me *DayuService) DescribeL7Rule(ctx context.Context, resourceType string, resourceId string, ruleId string) (infos *dayu.L7RuleEntry, health *dayu.L7RuleHealth, has bool, errRet error)

func (*DayuService) DescribeL7Rules

func (me *DayuService) DescribeL7Rules(ctx context.Context, resourceType string, resourceId string, ruleDomain string, ruleId string, protocol string) (infos []*dayu.L7RuleEntry, healths []*dayu.L7RuleHealth, has bool, errRet error)

func (*DayuService) DescribeL7RulesV2

func (me *DayuService) DescribeL7RulesV2(ctx context.Context, business string, extendParams map[string]interface{}) (rules []*dayu.NewL7RuleEntry, healths []*dayu.L7RuleHealth, errRet error)

func (*DayuService) DescribeNewL4Rules

func (me *DayuService) DescribeNewL4Rules(ctx context.Context, business string, extendParams map[string]interface{}) (infos []*dayu.NewL4RuleEntry, errRet error)

func (*DayuService) ModifyCCSelfdefinePolicy

func (me *DayuService) ModifyCCSelfdefinePolicy(ctx context.Context, resourceType string, resourceId string, policyId string, ccPolicy dayu.CCPolicy) (errRet error)

func (*DayuService) ModifyDdosPolicy

func (me *DayuService) ModifyDdosPolicy(ctx context.Context, resourceType string, policyId string, ddosPolicyDropOption []*dayu.DDoSPolicyDropOption, ddosPolicyPortLimit []*dayu.DDoSPolicyPortLimit, ipBlackWhite []*dayu.IpBlackWhite, ddosPacketFilter []*dayu.DDoSPolicyPacketFilter, waterPrintPolicy []*dayu.WaterPrintPolicy) (errRet error)

func (*DayuService) ModifyDdosPolicyCase

func (me *DayuService) ModifyDdosPolicyCase(ctx context.Context, request *dayu.ModifyDDoSPolicyCaseRequest) (errRet error)

func (*DayuService) ModifyDdosPolicyName

func (me *DayuService) ModifyDdosPolicyName(ctx context.Context, resourceType string, policyId string, name string) (errRet error)

func (*DayuService) ModifyL4Rule

func (me *DayuService) ModifyL4Rule(ctx context.Context, resourceType string, resourceId string, rule dayu.L4RuleEntry) (errRet error)

func (*DayuService) ModifyL7Rule

func (me *DayuService) ModifyL7Rule(ctx context.Context, resourceType string, resourceId string, rule dayu.L7RuleEntry) (errRet error)

func (*DayuService) ModifyL7RuleV2

func (me *DayuService) ModifyL7RuleV2(ctx context.Context, resourceType string, resourceId string, rule *dayu.NewL7RuleEntry) (errRet error)

func (*DayuService) ModifyNewL4Rule

func (me *DayuService) ModifyNewL4Rule(ctx context.Context, business string, id string, singleRule interface{}) (errRet error)

func (*DayuService) SetL4Health

func (me *DayuService) SetL4Health(ctx context.Context, resourceType string, resourceId string, healthCheck dayu.L4HealthConfig) (errRet error)

func (*DayuService) SetL7Health

func (me *DayuService) SetL7Health(ctx context.Context, resourceType string, resourceId string, healthCheck dayu.L7HealthConfig) (errRet error)

func (*DayuService) SetRuleSwitch

func (me *DayuService) SetRuleSwitch(ctx context.Context, resourceType string, resourceId string, ruleId string, switchFlag bool, protocol string) (errRet error)

func (*DayuService) SetSession

func (me *DayuService) SetSession(ctx context.Context, resourceType string, resourceId string, ruleId string, switchFlag bool, sessionTime int) (errRet error)

func (*DayuService) UnbindDdosPolicy

func (me *DayuService) UnbindDdosPolicy(ctx context.Context, resourceId string, resourceType string, policyId string) (errRet error)

Jump to

Keyboard shortcuts

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