cloudprovider

package
v0.3.10-0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultAction

type DefaultAction struct {
	// Allow, Block, Log, Count, Alert, Detection, Prevention
	Action string `json:"action"`
	// 仅Action为Allow时生效
	InsertHeaders map[string]string `json:"insert_headers"`
	// 仅Action为Block时生效
	Response string `json:"response"`
	// 仅Action为Block时生效
	ResponseCode *int `json:"response_code"`
	// 仅Action为Block时生效
	ResponseHeaders map[string]string `json:"response_headers"`
}

DefaultAction is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.DefaultAction.

type SCdnDomain

type SCdnDomain struct {
	// cdn加速域名
	Domain string `json:"domain"`
	// 状态 rejected(域名未审核)|processing(部署中)|online|offline
	Status string `json:"status"`
	// 区域 mainland|overseas|global
	Area string `json:"area"`
	// cdn Cname
	Cname string `json:"cname"`
	// 源站
	Origin string `json:"origin"`
	// 源站类型 domain|ip|bucket
	OriginType string `json:"origin_type"`
}

SCdnDomain is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.SCdnDomain.

type SCdnOrigin

type SCdnOrigin struct {
	Type       string `json:"type"`
	Origin     string `json:"origin"`
	ServerName string `json:"server_name"`
	Protocol   string `json:"protocol"`
	Path       string `json:"path"`
	Port       int    `json:"port"`
	Enabled    string `json:"enabled"`
	Priority   int    `json:"priority"`
}

SCdnOrigin is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.SCdnOrigin.

type SCdnOrigins

type SCdnOrigins []SCdnOrigin

SCdnOrigins is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.SCdnOrigins.

type SExcludeRule

type SExcludeRule struct {
	Name string `json:"name"`
}

SExcludeRule is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.SExcludeRule.

type SExcludeRules

type SExcludeRules []SExcludeRule

SExcludeRules is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.SExcludeRules.

type SGeographicInfo

type SGeographicInfo struct {
	// 纬度
	// example: 26.647003
	Latitude float32 `json:"latitude"`
	// 经度
	// example: 106.630211
	Longitude float32 `json:"longitude"`
	// 城市
	// example: Guiyang
	City string `json:"city"`
	// 国家代码
	// example: CN
	CountryCode string `json:"country_code"`
}

SGeographicInfo is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.SGeographicInfo.

type SSubAccount

type SSubAccount struct {
	// 若Account不为空,可不传
	Name string `json:"name"`
	// 输入必填,若为空,需要指定子账号名称
	Account      string `json:"account"`
	HealthStatus string `json:"health_status"`
	// 云端服务健康状态。例如欠费、项目冻结都属于不健康状态。
	DefaultProjectId string `json:"default_project_id"`
}

SSubAccount is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.SSubAccount.

type SWafStatement

type SWafStatement struct {
	// 管理规则组名称
	ManagedRuleGroupName string `json:"managed_rule_group_name"`
	// 不包含的规则列表
	ExcludeRules *SExcludeRules `json:"exclude_rules"`
	// 表达式类别
	// enmu: ByteMatch, GeoMatch, IPSet, LabelMatch, ManagedRuleGroup, Rate, RegexSet, RuleGroup, Size, SqliMatch, XssMatch
	Type string `json:"type"`
	// 是否取反操作, 仅对Azure生效
	Negation bool `json:"negation"`
	// 操作类型
	// enum: EQ, NE, LE, LT, GE, GT
	Operator string `json:"operator"`
	// 匹配字段
	// enmu: Body, JsonBody, Query, Method, Header, UriPath, PostArgs, Cookie
	MatchField string `json:"match_field"`
	// 匹配字段的key
	MatchFieldKey string `json:"match_field_key"`
	// 匹配字段的值列表
	MatchFieldValues *TWafMatchFieldValues `json:"match_field_values"`
	// 进行转换操作
	// enmu: CompressWithSpace, HtmlEntityDecode, Lowercase, CmdLine, UrlDecode, Trim, UrlEncode, RemoveNulls
	Transformations   *TextTransformations `json:"transformations"`
	ForwardedIPHeader string               `json:"forwarded_ip_header"`
	// 搜索字段, 仅Aws有用
	SearchString string `json:"search_string"`
	IPSetId      string `json:"ip_set_id"`
	// 正则表达式Id, 目前只读
	RegexSetId string `json:"regex_set_id"`
	// 自定义规则组Id, 目前只读
	RuleGroupId string `json:"rule_group_id"`
}

SWafStatement is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.SWafStatement.

type ServerVncInput

type ServerVncInput struct {
	// 是否使用原生vnc控制台,此选项仅对openstack有效
	// default: false
	Origin bool `json:"origin"`
}

ServerVncInput is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.ServerVncInput.

type ServerVncOutput

type ServerVncOutput struct {
	Id string `json:"id"`
	// baremetal
	HostId string `json:"host_id"`
	Zone   string `json:"zone"`
	// kvm host ip
	Host         string `json:"host"`
	Protocol     string `json:"protocol"`
	Port         int64  `json:"port"`
	Url          string `json:"url"`
	InstanceId   string `json:"instance_id"`
	InstanceName string `json:"instance_name"`
	Password     string `json:"password"`
	VncPassword  string `json:"vnc_password"`
	OsName       string `json:"os_name"`
	// cloudpods
	ApiServer     string `json:"api_server"`
	ConnectParams string `json:"connect_params"`
	Session       string `json:"session"`
	Hypervisor    string `json:"hypervisor"`
}

ServerVncOutput is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.ServerVncOutput.

type SubAccounts

type SubAccounts struct {
	// 若输出则是全量子账号列表,若输入,代表允许同步的子账号
	Accounts []cloudprovider.SSubAccount `json:"accounts"`
	// 若输出是云账号查询到的区域列表,若输入,代表允许同步的区域
	Cloudregions []struct {
		Id     string
		Name   string
		Status string
	} `json:"cloudregions"`
}

SubAccounts is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.SubAccounts.

type TWafAction

type TWafAction string

TWafAction is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.TWafAction.

type TWafMatchField

type TWafMatchField string

TWafMatchField is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.TWafMatchField.

type TWafMatchFieldValues

type TWafMatchFieldValues []string

TWafMatchFieldValues is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.TWafMatchFieldValues.

type TWafOperator

type TWafOperator string

TWafOperator is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.TWafOperator.

type TWafStatementType

type TWafStatementType string

TWafStatementType is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.TWafStatementType.

type TWafTextTransformation

type TWafTextTransformation string

TWafTextTransformation is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.TWafTextTransformation.

type TextTransformations

type TextTransformations []TWafTextTransformation

TextTransformations is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.TextTransformations.

type WafAddresses

type WafAddresses []string

WafAddresses is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.WafAddresses.

type WafRegexPatterns

type WafRegexPatterns []string

WafRegexPatterns is an autogenerated struct via yunion.io/x/cloudmux/pkg/cloudprovider.WafRegexPatterns.

Jump to

Keyboard shortcuts

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