Documentation ¶
Index ¶
- type StarshieldClient
- func (c *StarshieldClient) Change0_RTTSessionResumptionSetting(request *starshield.Change0_RTTSessionResumptionSettingRequest) (*starshield.Change0_RTTSessionResumptionSettingResponse, error)
- func (c *StarshieldClient) ChangeAlwaysOnlineSetting(request *starshield.ChangeAlwaysOnlineSettingRequest) (*starshield.ChangeAlwaysOnlineSettingResponse, error)
- func (c *StarshieldClient) ChangeAlwaysUseHTTPSSetting(request *starshield.ChangeAlwaysUseHTTPSSettingRequest) (*starshield.ChangeAlwaysUseHTTPSSettingResponse, error)
- func (c *StarshieldClient) ChangeAutomaticHTTPSRewritesSetting(request *starshield.ChangeAutomaticHTTPSRewritesSettingRequest) (*starshield.ChangeAutomaticHTTPSRewritesSettingResponse, error)
- func (c *StarshieldClient) ChangeBrotliSetting(request *starshield.ChangeBrotliSettingRequest) (*starshield.ChangeBrotliSettingResponse, error)
- func (c *StarshieldClient) ChangeBrowserCacheTTLSetting(request *starshield.ChangeBrowserCacheTTLSettingRequest) (*starshield.ChangeBrowserCacheTTLSettingResponse, error)
- func (c *StarshieldClient) ChangeBrowserCheckSetting(request *starshield.ChangeBrowserCheckSettingRequest) (*starshield.ChangeBrowserCheckSettingResponse, error)
- func (c *StarshieldClient) ChangeCacheLevelSetting(request *starshield.ChangeCacheLevelSettingRequest) (*starshield.ChangeCacheLevelSettingResponse, error)
- func (c *StarshieldClient) ChangeChallengeTTLSetting(request *starshield.ChangeChallengeTTLSettingRequest) (*starshield.ChangeChallengeTTLSettingResponse, error)
- func (c *StarshieldClient) ChangeCiphersSetting(request *starshield.ChangeCiphersSettingRequest) (*starshield.ChangeCiphersSettingResponse, error)
- func (c *StarshieldClient) ChangeDevelopmentModeSetting(request *starshield.ChangeDevelopmentModeSettingRequest) (*starshield.ChangeDevelopmentModeSettingResponse, error)
- func (c *StarshieldClient) ChangeEmailObfuscationSetting(request *starshield.ChangeEmailObfuscationSettingRequest) (*starshield.ChangeEmailObfuscationSettingResponse, error)
- func (c *StarshieldClient) ChangeEnableErrorPagesOnSetting(request *starshield.ChangeEnableErrorPagesOnSettingRequest) (*starshield.ChangeEnableErrorPagesOnSettingResponse, error)
- func (c *StarshieldClient) ChangeEnableQueryStringSortSetting(request *starshield.ChangeEnableQueryStringSortSettingRequest) (*starshield.ChangeEnableQueryStringSortSettingResponse, error)
- func (c *StarshieldClient) ChangeHTTP2EdgePrioritizationSetting(request *starshield.ChangeHTTP2EdgePrioritizationSettingRequest) (*starshield.ChangeHTTP2EdgePrioritizationSettingResponse, error)
- func (c *StarshieldClient) ChangeHTTP2Setting(request *starshield.ChangeHTTP2SettingRequest) (*starshield.ChangeHTTP2SettingResponse, error)
- func (c *StarshieldClient) ChangeHTTP3Setting(request *starshield.ChangeHTTP3SettingRequest) (*starshield.ChangeHTTP3SettingResponse, error)
- func (c *StarshieldClient) ChangeHotlinkProtectionSetting(request *starshield.ChangeHotlinkProtectionSettingRequest) (*starshield.ChangeHotlinkProtectionSettingResponse, error)
- func (c *StarshieldClient) ChangeIPGeolocationSetting(request *starshield.ChangeIPGeolocationSettingRequest) (*starshield.ChangeIPGeolocationSettingResponse, error)
- func (c *StarshieldClient) ChangeIPv6Setting(request *starshield.ChangeIPv6SettingRequest) (*starshield.ChangeIPv6SettingResponse, error)
- func (c *StarshieldClient) ChangeMaxUploadSetting(request *starshield.ChangeMaxUploadSettingRequest) (*starshield.ChangeMaxUploadSettingResponse, error)
- func (c *StarshieldClient) ChangeMinifySetting(request *starshield.ChangeMinifySettingRequest) (*starshield.ChangeMinifySettingResponse, error)
- func (c *StarshieldClient) ChangeMinimumTLSVersionSetting(request *starshield.ChangeMinimumTLSVersionSettingRequest) (*starshield.ChangeMinimumTLSVersionSettingResponse, error)
- func (c *StarshieldClient) ChangeMirageSetting(request *starshield.ChangeMirageSettingRequest) (*starshield.ChangeMirageSettingResponse, error)
- func (c *StarshieldClient) ChangeMobileRedirectSetting(request *starshield.ChangeMobileRedirectSettingRequest) (*starshield.ChangeMobileRedirectSettingResponse, error)
- func (c *StarshieldClient) ChangeOpportunisticEncryptionSetting(request *starshield.ChangeOpportunisticEncryptionSettingRequest) (*starshield.ChangeOpportunisticEncryptionSettingResponse, error)
- func (c *StarshieldClient) ChangePolishSetting(request *starshield.ChangePolishSettingRequest) (*starshield.ChangePolishSettingResponse, error)
- func (c *StarshieldClient) ChangePrefetchPreloadSetting(request *starshield.ChangePrefetchPreloadSettingRequest) (*starshield.ChangePrefetchPreloadSettingResponse, error)
- func (c *StarshieldClient) ChangePrivacyPassSetting(request *starshield.ChangePrivacyPassSettingRequest) (*starshield.ChangePrivacyPassSettingResponse, error)
- func (c *StarshieldClient) ChangePseudoIPv4Setting(request *starshield.ChangePseudoIPv4SettingRequest) (*starshield.ChangePseudoIPv4SettingResponse, error)
- func (c *StarshieldClient) ChangeRocketLoaderSetting(request *starshield.ChangeRocketLoaderSettingRequest) (*starshield.ChangeRocketLoaderSettingResponse, error)
- func (c *StarshieldClient) ChangeSSLSetting(request *starshield.ChangeSSLSettingRequest) (*starshield.ChangeSSLSettingResponse, error)
- func (c *StarshieldClient) ChangeSecurityLevelSetting(request *starshield.ChangeSecurityLevelSettingRequest) (*starshield.ChangeSecurityLevelSettingResponse, error)
- func (c *StarshieldClient) ChangeServerSideExcludeSetting(request *starshield.ChangeServerSideExcludeSettingRequest) (*starshield.ChangeServerSideExcludeSettingResponse, error)
- func (c *StarshieldClient) ChangeTLS1_3Setting(request *starshield.ChangeTLS1_3SettingRequest) (*starshield.ChangeTLS1_3SettingResponse, error)
- func (c *StarshieldClient) ChangeTLSClientAuthSetting(request *starshield.ChangeTLSClientAuthSettingRequest) (*starshield.ChangeTLSClientAuthSettingResponse, error)
- func (c *StarshieldClient) ChangeTrueClientIPSetting(request *starshield.ChangeTrueClientIPSettingRequest) (*starshield.ChangeTrueClientIPSettingResponse, error)
- func (c *StarshieldClient) ChangeWebApplicationFirewallWAFSetting(request *starshield.ChangeWebApplicationFirewallWAFSettingRequest) (*starshield.ChangeWebApplicationFirewallWAFSettingResponse, error)
- func (c *StarshieldClient) ChangeWebPSetting(request *starshield.ChangeWebPSettingRequest) (*starshield.ChangeWebPSettingResponse, error)
- func (c *StarshieldClient) ChangeWebSocketsSetting(request *starshield.ChangeWebSocketsSettingRequest) (*starshield.ChangeWebSocketsSettingResponse, error)
- func (c *StarshieldClient) CheckInstancesName(request *starshield.CheckInstancesNameRequest) (*starshield.CheckInstancesNameResponse, error)
- func (c *StarshieldClient) CreateDNSRecord(request *starshield.CreateDNSRecordRequest) (*starshield.CreateDNSRecordResponse, error)
- func (c *StarshieldClient) CreateFilters(request *starshield.CreateFiltersRequest) (*starshield.CreateFiltersResponse, error)
- func (c *StarshieldClient) CreateFirewallRules(request *starshield.CreateFirewallRulesRequest) (*starshield.CreateFirewallRulesResponse, error)
- func (c *StarshieldClient) CreateFlowPack(request *starshield.CreateFlowPackRequest) (*starshield.CreateFlowPackResponse, error)
- func (c *StarshieldClient) CreateInstance(request *starshield.CreateInstanceRequest) (*starshield.CreateInstanceResponse, error)
- func (c *StarshieldClient) CreatePageRule(request *starshield.CreatePageRuleRequest) (*starshield.CreatePageRuleResponse, error)
- func (c *StarshieldClient) CreateSSLConfiguration(request *starshield.CreateSSLConfigurationRequest) (*starshield.CreateSSLConfigurationResponse, error)
- func (c *StarshieldClient) CreateZone(request *starshield.CreateZoneRequest) (*starshield.CreateZoneResponse, error)
- func (c *StarshieldClient) DeleteAdvancedCertificateManagerCertificatePack(request *starshield.DeleteAdvancedCertificateManagerCertificatePackRequest) (*starshield.DeleteAdvancedCertificateManagerCertificatePackResponse, error)
- func (c *StarshieldClient) DeleteDNSRecord(request *starshield.DeleteDNSRecordRequest) (*starshield.DeleteDNSRecordResponse, error)
- func (c *StarshieldClient) DeleteIndividualFirewallRules(request *starshield.DeleteIndividualFirewallRulesRequest) (*starshield.DeleteIndividualFirewallRulesResponse, error)
- func (c *StarshieldClient) DeletePageRule(request *starshield.DeletePageRuleRequest) (*starshield.DeletePageRuleResponse, error)
- func (c *StarshieldClient) DeleteSSLConfiguration(request *starshield.DeleteSSLConfigurationRequest) (*starshield.DeleteSSLConfigurationResponse, error)
- func (c *StarshieldClient) DeleteZone(request *starshield.DeleteZoneRequest) (*starshield.DeleteZoneResponse, error)
- func (c *StarshieldClient) DescribeBotStatus(request *starshield.DescribeBotStatusRequest) (*starshield.DescribeBotStatusResponse, error)
- func (c *StarshieldClient) DescribeInstanceByOrderNo(request *starshield.DescribeInstanceByOrderNoRequest) (*starshield.DescribeInstanceByOrderNoResponse, error)
- func (c *StarshieldClient) DescribeInstances(request *starshield.DescribeInstancesRequest) (*starshield.DescribeInstancesResponse, error)
- func (c *StarshieldClient) DescribePackage(request *starshield.DescribePackageRequest) (*starshield.DescribePackageResponse, error)
- func (c *StarshieldClient) DescribePackages(request *starshield.DescribePackagesRequest) (*starshield.DescribePackagesResponse, error)
- func (c *StarshieldClient) DisableLogger()
- func (c *StarshieldClient) EditFirewallPackage(request *starshield.EditFirewallPackageRequest) (*starshield.EditFirewallPackageResponse, error)
- func (c *StarshieldClient) EditRuleGroup(request *starshield.EditRuleGroupRequest) (*starshield.EditRuleGroupResponse, error)
- func (c *StarshieldClient) EditUniversalSSLSettings(request *starshield.EditUniversalSSLSettingsRequest) (*starshield.EditUniversalSSLSettingsResponse, error)
- func (c *StarshieldClient) EditZoneSettingsInfo(request *starshield.EditZoneSettingsInfoRequest) (*starshield.EditZoneSettingsInfoResponse, error)
- func (c *StarshieldClient) FirewallPackageDetails(request *starshield.FirewallPackageDetailsRequest) (*starshield.FirewallPackageDetailsResponse, error)
- func (c *StarshieldClient) Get0_RTTSessionResumptionSetting(request *starshield.Get0_RTTSessionResumptionSettingRequest) (*starshield.Get0_RTTSessionResumptionSettingResponse, error)
- func (c *StarshieldClient) GetAdvancedDDOSSetting(request *starshield.GetAdvancedDDOSSettingRequest) (*starshield.GetAdvancedDDOSSettingResponse, error)
- func (c *StarshieldClient) GetAllZoneSettings(request *starshield.GetAllZoneSettingsRequest) (*starshield.GetAllZoneSettingsResponse, error)
- func (c *StarshieldClient) GetAlwaysOnlineSetting(request *starshield.GetAlwaysOnlineSettingRequest) (*starshield.GetAlwaysOnlineSettingResponse, error)
- func (c *StarshieldClient) GetAlwaysUseHTTPSSetting(request *starshield.GetAlwaysUseHTTPSSettingRequest) (*starshield.GetAlwaysUseHTTPSSettingResponse, error)
- func (c *StarshieldClient) GetAutomaticHTTPSRewritesSetting(request *starshield.GetAutomaticHTTPSRewritesSettingRequest) (*starshield.GetAutomaticHTTPSRewritesSettingResponse, error)
- func (c *StarshieldClient) GetBrowserCacheTTLSetting(request *starshield.GetBrowserCacheTTLSettingRequest) (*starshield.GetBrowserCacheTTLSettingResponse, error)
- func (c *StarshieldClient) GetBrowserCheckSetting(request *starshield.GetBrowserCheckSettingRequest) (*starshield.GetBrowserCheckSettingResponse, error)
- func (c *StarshieldClient) GetChallengeTTLSetting(request *starshield.GetChallengeTTLSettingRequest) (*starshield.GetChallengeTTLSettingResponse, error)
- func (c *StarshieldClient) GetCiphersSetting(request *starshield.GetCiphersSettingRequest) (*starshield.GetCiphersSettingResponse, error)
- func (c *StarshieldClient) GetDevelopmentModeSetting(request *starshield.GetDevelopmentModeSettingRequest) (*starshield.GetDevelopmentModeSettingResponse, error)
- func (c *StarshieldClient) GetEmailObfuscationSetting(request *starshield.GetEmailObfuscationSettingRequest) (*starshield.GetEmailObfuscationSettingResponse, error)
- func (c *StarshieldClient) GetEnableErrorPagesOnSetting(request *starshield.GetEnableErrorPagesOnSettingRequest) (*starshield.GetEnableErrorPagesOnSettingResponse, error)
- func (c *StarshieldClient) GetEnableQueryStringSortSetting(request *starshield.GetEnableQueryStringSortSettingRequest) (*starshield.GetEnableQueryStringSortSettingResponse, error)
- func (c *StarshieldClient) GetHTTP2EdgePrioritizationSetting(request *starshield.GetHTTP2EdgePrioritizationSettingRequest) (*starshield.GetHTTP2EdgePrioritizationSettingResponse, error)
- func (c *StarshieldClient) GetHTTP2Setting(request *starshield.GetHTTP2SettingRequest) (*starshield.GetHTTP2SettingResponse, error)
- func (c *StarshieldClient) GetHTTP3Setting(request *starshield.GetHTTP3SettingRequest) (*starshield.GetHTTP3SettingResponse, error)
- func (c *StarshieldClient) GetHotlinkProtectionSetting(request *starshield.GetHotlinkProtectionSettingRequest) (*starshield.GetHotlinkProtectionSettingResponse, error)
- func (c *StarshieldClient) GetIPGeolocationSetting(request *starshield.GetIPGeolocationSettingRequest) (*starshield.GetIPGeolocationSettingResponse, error)
- func (c *StarshieldClient) GetIPv6Setting(request *starshield.GetIPv6SettingRequest) (*starshield.GetIPv6SettingResponse, error)
- func (c *StarshieldClient) GetImageResizingSetting(request *starshield.GetImageResizingSettingRequest) (*starshield.GetImageResizingSettingResponse, error)
- func (c *StarshieldClient) GetMinifySetting(request *starshield.GetMinifySettingRequest) (*starshield.GetMinifySettingResponse, error)
- func (c *StarshieldClient) GetMinimumTLSVersionSetting(request *starshield.GetMinimumTLSVersionSettingRequest) (*starshield.GetMinimumTLSVersionSettingResponse, error)
- func (c *StarshieldClient) GetMirageSetting(request *starshield.GetMirageSettingRequest) (*starshield.GetMirageSettingResponse, error)
- func (c *StarshieldClient) GetMobileRedirectSetting(request *starshield.GetMobileRedirectSettingRequest) (*starshield.GetMobileRedirectSettingResponse, error)
- func (c *StarshieldClient) GetOpportunisticEncryptionSetting(request *starshield.GetOpportunisticEncryptionSettingRequest) (*starshield.GetOpportunisticEncryptionSettingResponse, error)
- func (c *StarshieldClient) GetPolishSetting(request *starshield.GetPolishSettingRequest) (*starshield.GetPolishSettingResponse, error)
- func (c *StarshieldClient) GetPrefetchPreloadSetting(request *starshield.GetPrefetchPreloadSettingRequest) (*starshield.GetPrefetchPreloadSettingResponse, error)
- func (c *StarshieldClient) GetPrivacyPassSetting(request *starshield.GetPrivacyPassSettingRequest) (*starshield.GetPrivacyPassSettingResponse, error)
- func (c *StarshieldClient) GetPseudoIPv4Setting(request *starshield.GetPseudoIPv4SettingRequest) (*starshield.GetPseudoIPv4SettingResponse, error)
- func (c *StarshieldClient) GetRocketLoaderSetting(request *starshield.GetRocketLoaderSettingRequest) (*starshield.GetRocketLoaderSettingResponse, error)
- func (c *StarshieldClient) GetSSLSetting(request *starshield.GetSSLSettingRequest) (*starshield.GetSSLSettingResponse, error)
- func (c *StarshieldClient) GetSecurityHeaderHSTSSetting(request *starshield.GetSecurityHeaderHSTSSettingRequest) (*starshield.GetSecurityHeaderHSTSSettingResponse, error)
- func (c *StarshieldClient) GetSecurityLevelSetting(request *starshield.GetSecurityLevelSettingRequest) (*starshield.GetSecurityLevelSettingResponse, error)
- func (c *StarshieldClient) GetServerSideExcludeSetting(request *starshield.GetServerSideExcludeSettingRequest) (*starshield.GetServerSideExcludeSettingResponse, error)
- func (c *StarshieldClient) GetTLSClientAuthSetting(request *starshield.GetTLSClientAuthSettingRequest) (*starshield.GetTLSClientAuthSettingResponse, error)
- func (c *StarshieldClient) GetTrueClientIPSetting(request *starshield.GetTrueClientIPSettingRequest) (*starshield.GetTrueClientIPSettingResponse, error)
- func (c *StarshieldClient) GetWebApplicationFirewallWAFSetting(request *starshield.GetWebApplicationFirewallWAFSettingRequest) (*starshield.GetWebApplicationFirewallWAFSettingResponse, error)
- func (c *StarshieldClient) GetWebPSetting(request *starshield.GetWebPSettingRequest) (*starshield.GetWebPSettingResponse, error)
- func (c *StarshieldClient) GetWebSocketsSetting(request *starshield.GetWebSocketsSettingRequest) (*starshield.GetWebSocketsSettingResponse, error)
- func (c *StarshieldClient) GetZoneEnableTLS1_3Setting(request *starshield.GetZoneEnableTLS1_3SettingRequest) (*starshield.GetZoneEnableTLS1_3SettingResponse, error)
- func (c *StarshieldClient) ListAvailableCustomPages(request *starshield.ListAvailableCustomPagesRequest) (*starshield.ListAvailableCustomPagesResponse, error)
- func (c *StarshieldClient) ListAvailablePageRuleSetting(request *starshield.ListAvailablePageRuleSettingRequest) (*starshield.ListAvailablePageRuleSettingResponse, error)
- func (c *StarshieldClient) ListCertificatePacks(request *starshield.ListCertificatePacksRequest) (*starshield.ListCertificatePacksResponse, error)
- func (c *StarshieldClient) ListDNSRecords(request *starshield.ListDNSRecordsRequest) (*starshield.ListDNSRecordsResponse, error)
- func (c *StarshieldClient) ListFirewallPackages(request *starshield.ListFirewallPackagesRequest) (*starshield.ListFirewallPackagesResponse, error)
- func (c *StarshieldClient) ListOfFirewallRules(request *starshield.ListOfFirewallRulesRequest) (*starshield.ListOfFirewallRulesResponse, error)
- func (c *StarshieldClient) ListPageRules(request *starshield.ListPageRulesRequest) (*starshield.ListPageRulesResponse, error)
- func (c *StarshieldClient) ListRuleGroups(request *starshield.ListRuleGroupsRequest) (*starshield.ListRuleGroupsResponse, error)
- func (c *StarshieldClient) ListRules(request *starshield.ListRulesRequest) (*starshield.ListRulesResponse, error)
- func (c *StarshieldClient) ListSSLConfigurations(request *starshield.ListSSLConfigurationsRequest) (*starshield.ListSSLConfigurationsResponse, error)
- func (c *StarshieldClient) ListZones(request *starshield.ListZonesRequest) (*starshield.ListZonesResponse, error)
- func (c *StarshieldClient) ModifyInstance(request *starshield.ModifyInstanceRequest) (*starshield.ModifyInstanceResponse, error)
- func (c *StarshieldClient) OpenFirewallBot(request *starshield.OpenFirewallBotRequest) (*starshield.OpenFirewallBotResponse, error)
- func (c *StarshieldClient) OrderAdvancedCertificateManagerCertificatePack(request *starshield.OrderAdvancedCertificateManagerCertificatePackRequest) (*starshield.OrderAdvancedCertificateManagerCertificatePackResponse, error)
- func (c *StarshieldClient) PurgeAllFiles(request *starshield.PurgeAllFilesRequest) (*starshield.PurgeAllFilesResponse, error)
- func (c *StarshieldClient) PurgeFilesByCache_TagsAndHostOrPrefix(request *starshield.PurgeFilesByCache_TagsAndHostOrPrefixRequest) (*starshield.PurgeFilesByCache_TagsAndHostOrPrefixResponse, error)
- func (c *StarshieldClient) PurgeFilesByURL(request *starshield.PurgeFilesByURLRequest) (*starshield.PurgeFilesByURLResponse, error)
- func (c *StarshieldClient) RuleGroupDetails(request *starshield.RuleGroupDetailsRequest) (*starshield.RuleGroupDetailsResponse, error)
- func (c *StarshieldClient) SelectDetailList(request *starshield.SelectDetailListRequest) (*starshield.SelectDetailListResponse, error)
- func (c *StarshieldClient) SetConfig(config *core.Config)
- func (c *StarshieldClient) SetLogger(logger core.Logger)
- func (c *StarshieldClient) UniversalSSLSettingsDetails(request *starshield.UniversalSSLSettingsDetailsRequest) (*starshield.UniversalSSLSettingsDetailsResponse, error)
- func (c *StarshieldClient) UpdateCustomPageURL(request *starshield.UpdateCustomPageURLRequest) (*starshield.UpdateCustomPageURLResponse, error)
- func (c *StarshieldClient) UpdateDNSRecord(request *starshield.UpdateDNSRecordRequest) (*starshield.UpdateDNSRecordResponse, error)
- func (c *StarshieldClient) UpdateIndividualFilter(request *starshield.UpdateIndividualFilterRequest) (*starshield.UpdateIndividualFilterResponse, error)
- func (c *StarshieldClient) UpdateIndividualFirewallRule(request *starshield.UpdateIndividualFirewallRuleRequest) (*starshield.UpdateIndividualFirewallRuleResponse, error)
- func (c *StarshieldClient) UpdatePageRule(request *starshield.UpdatePageRuleRequest) (*starshield.UpdatePageRuleResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StarshieldClient ¶
type StarshieldClient struct {
core.JDCloudClient
}
func NewStarshieldClient ¶
func NewStarshieldClient(credential *core.Credential) *StarshieldClient
func (*StarshieldClient) Change0_RTTSessionResumptionSetting ¶
func (c *StarshieldClient) Change0_RTTSessionResumptionSetting(request *starshield.Change0_RTTSessionResumptionSettingRequest) (*starshield.Change0_RTTSessionResumptionSettingResponse, error)
开启/关闭 0-RTT
func (*StarshieldClient) ChangeAlwaysOnlineSetting ¶
func (c *StarshieldClient) ChangeAlwaysOnlineSetting(request *starshield.ChangeAlwaysOnlineSettingRequest) (*starshield.ChangeAlwaysOnlineSettingResponse, error)
当开启时,在你的源站离线期间,星盾会提供已缓存过的页面。
func (*StarshieldClient) ChangeAlwaysUseHTTPSSetting ¶
func (c *StarshieldClient) ChangeAlwaysUseHTTPSSetting(request *starshield.ChangeAlwaysUseHTTPSSettingRequest) (*starshield.ChangeAlwaysUseHTTPSSettingResponse, error)
对所有使用"http"的URL的请求,用301重定向到相应的 "https" URL。如果你只想对一个子集的请求进行重定向,可以考虑创建一个"Always use HTTPS"的页面规则。
func (*StarshieldClient) ChangeAutomaticHTTPSRewritesSetting ¶
func (c *StarshieldClient) ChangeAutomaticHTTPSRewritesSetting(request *starshield.ChangeAutomaticHTTPSRewritesSettingRequest) (*starshield.ChangeAutomaticHTTPSRewritesSettingResponse, error)
为该域启用自动HTTPS重写功能。
func (*StarshieldClient) ChangeBrotliSetting ¶
func (c *StarshieldClient) ChangeBrotliSetting(request *starshield.ChangeBrotliSettingRequest) (*starshield.ChangeBrotliSettingResponse, error)
当请求资产的客户端支持brotli压缩算法时,星盾将提供资产的brotli压缩版本。
func (*StarshieldClient) ChangeBrowserCacheTTLSetting ¶
func (c *StarshieldClient) ChangeBrowserCacheTTLSetting(request *starshield.ChangeBrowserCacheTTLSettingRequest) (*starshield.ChangeBrowserCacheTTLSettingResponse, error)
浏览器缓存TTL(以秒为单位)指定星盾缓存资源将在访问者的计算机上保留多长时间。星盾将遵守服务器指定的任何更长时间。
func (*StarshieldClient) ChangeBrowserCheckSetting ¶
func (c *StarshieldClient) ChangeBrowserCheckSetting(request *starshield.ChangeBrowserCheckSettingRequest) (*starshield.ChangeBrowserCheckSettingResponse, error)
浏览器完整性检查与不良行为检查类似,寻找最常被垃圾邮件发送者滥用的常见HTTP头,并拒绝他们访问您的页面。它还会对没有用户代理或非标准用户代理(也是滥用机器人、爬虫或访客常用的)的访客提出挑战质询。
func (*StarshieldClient) ChangeCacheLevelSetting ¶
func (c *StarshieldClient) ChangeCacheLevelSetting(request *starshield.ChangeCacheLevelSettingRequest) (*starshield.ChangeCacheLevelSettingResponse, error)
缓存级别的功能是基于设置的级别。
basic设置将缓存大多数静态资源(即css、图片和JavaScript)。 simplified设置将在提供缓存的资源时忽略查询字符串。 aggressive设置将缓存所有的静态资源,包括有查询字符串的资源。
func (*StarshieldClient) ChangeChallengeTTLSetting ¶
func (c *StarshieldClient) ChangeChallengeTTLSetting(request *starshield.ChangeChallengeTTLSettingRequest) (*starshield.ChangeChallengeTTLSettingResponse, error)
指定访问者在成功完成一项挑战(如验证码)后允许访问您的网站多长时间。在TTL过期后,访问者将不得不完成新的挑战。我们建议设置为15-45分钟,并将尝试遵守任何超过45分钟的设置。
func (*StarshieldClient) ChangeCiphersSetting ¶
func (c *StarshieldClient) ChangeCiphersSetting(request *starshield.ChangeCiphersSettingRequest) (*starshield.ChangeCiphersSettingResponse, error)
一个用于TLS终端的密码允许列表。这些密码必须是BoringSSL的格式。
func (*StarshieldClient) ChangeDevelopmentModeSetting ¶
func (c *StarshieldClient) ChangeDevelopmentModeSetting(request *starshield.ChangeDevelopmentModeSettingRequest) (*starshield.ChangeDevelopmentModeSettingResponse, error)
如果你需要对你的网站进行修改,开发模式可以让你暂时进入网站的开发模式。这将绕过星盾的加速缓存,并降低您的网站速度。
但如果您正在对可缓存的内容(如图片、css 或 JavaScript)进行更改,并希望立即看到这些更改,这时就很有用。一旦进入,开发模式将持续3小时,然后自动切换关闭。
func (*StarshieldClient) ChangeEmailObfuscationSetting ¶
func (c *StarshieldClient) ChangeEmailObfuscationSetting(request *starshield.ChangeEmailObfuscationSettingRequest) (*starshield.ChangeEmailObfuscationSettingResponse, error)
在你的网页上对电子邮件地址进行加密,以防止机器人入侵,同时保持它们对人类可见。
func (*StarshieldClient) ChangeEnableErrorPagesOnSetting ¶
func (c *StarshieldClient) ChangeEnableErrorPagesOnSetting(request *starshield.ChangeEnableErrorPagesOnSettingRequest) (*starshield.ChangeEnableErrorPagesOnSettingResponse, error)
星盾将代理源服务器上任何 502、504 错误的客户错误页面,而不是显示默认的星盾错误页面。这不适用于 522 错误,并且仅限于企业级域。
func (*StarshieldClient) ChangeEnableQueryStringSortSetting ¶
func (c *StarshieldClient) ChangeEnableQueryStringSortSetting(request *starshield.ChangeEnableQueryStringSortSettingRequest) (*starshield.ChangeEnableQueryStringSortSettingResponse, error)
星盾将把具有相同查询字符串的文件视为缓存中的同一个文件,而不管查询字符串的顺序如何。这只限于企业级域。
func (*StarshieldClient) ChangeHTTP2EdgePrioritizationSetting ¶
func (c *StarshieldClient) ChangeHTTP2EdgePrioritizationSetting(request *starshield.ChangeHTTP2EdgePrioritizationSettingRequest) (*starshield.ChangeHTTP2EdgePrioritizationSettingResponse, error)
HTTP/2边缘优化,优化了通过HTTP/2提供的资源交付,提高了页面加载性能。当与Worker结合使用时,它还支持对内容交付的精细控制。
func (*StarshieldClient) ChangeHTTP2Setting ¶
func (c *StarshieldClient) ChangeHTTP2Setting(request *starshield.ChangeHTTP2SettingRequest) (*starshield.ChangeHTTP2SettingResponse, error)
开启/关闭HTTP2
func (*StarshieldClient) ChangeHTTP3Setting ¶
func (c *StarshieldClient) ChangeHTTP3Setting(request *starshield.ChangeHTTP3SettingRequest) (*starshield.ChangeHTTP3SettingResponse, error)
开启/关闭HTTP3
func (*StarshieldClient) ChangeHotlinkProtectionSetting ¶
func (c *StarshieldClient) ChangeHotlinkProtectionSetting(request *starshield.ChangeHotlinkProtectionSettingRequest) (*starshield.ChangeHotlinkProtectionSettingResponse, error)
启用后,热链路保护选项可确保其他网站无法通过建立使用您网站上托管的图像的页面来占用您的带宽。只要您的网站上的图像请求被星盾选中,我们就会检查以确保这不是其他网站在请求它们。
人们仍然能够从你的网页上下载和查看图像,但其他网站将无法窃取它们用于自己的网页。
func (*StarshieldClient) ChangeIPGeolocationSetting ¶
func (c *StarshieldClient) ChangeIPGeolocationSetting(request *starshield.ChangeIPGeolocationSettingRequest) (*starshield.ChangeIPGeolocationSettingResponse, error)
启用IP地理定位,让星盾对您网站的访问者进行地理定位,并将国家代码传递给您。
func (*StarshieldClient) ChangeIPv6Setting ¶
func (c *StarshieldClient) ChangeIPv6Setting(request *starshield.ChangeIPv6SettingRequest) (*starshield.ChangeIPv6SettingResponse, error)
在所有启用星盾的子域上启用 IPv6。
func (*StarshieldClient) ChangeMaxUploadSetting ¶
func (c *StarshieldClient) ChangeMaxUploadSetting(request *starshield.ChangeMaxUploadSettingRequest) (*starshield.ChangeMaxUploadSettingResponse, error)
变更上传文件的最大值
func (*StarshieldClient) ChangeMinifySetting ¶
func (c *StarshieldClient) ChangeMinifySetting(request *starshield.ChangeMinifySettingRequest) (*starshield.ChangeMinifySettingResponse, error)
为你的网站自动最小化某些资产
func (*StarshieldClient) ChangeMinimumTLSVersionSetting ¶
func (c *StarshieldClient) ChangeMinimumTLSVersionSetting(request *starshield.ChangeMinimumTLSVersionSettingRequest) (*starshield.ChangeMinimumTLSVersionSettingResponse, error)
设置HTTPS请求使用的TLS协议的最低版本。例如,如果选择TLS 1.1,那么TLS 1.0连接将被拒绝,而1.1、1.2和1.3(如果启用)将被允许。
func (*StarshieldClient) ChangeMirageSetting ¶
func (c *StarshieldClient) ChangeMirageSetting(request *starshield.ChangeMirageSettingRequest) (*starshield.ChangeMirageSettingResponse, error)
自动优化移动设备上网站访问者的图像加载
func (*StarshieldClient) ChangeMobileRedirectSetting ¶
func (c *StarshieldClient) ChangeMobileRedirectSetting(request *starshield.ChangeMobileRedirectSettingRequest) (*starshield.ChangeMobileRedirectSettingResponse, error)
自动将移动设备上的访问者重定向到一个移动优化的子域上
func (*StarshieldClient) ChangeOpportunisticEncryptionSetting ¶
func (c *StarshieldClient) ChangeOpportunisticEncryptionSetting(request *starshield.ChangeOpportunisticEncryptionSettingRequest) (*starshield.ChangeOpportunisticEncryptionSettingResponse, error)
为当前域启用随机加密
func (*StarshieldClient) ChangePolishSetting ¶
func (c *StarshieldClient) ChangePolishSetting(request *starshield.ChangePolishSettingRequest) (*starshield.ChangePolishSettingResponse, error)
剥离元数据并压缩你的图像,以加快页面加载时间。
Basic(无损),减少PNG、JPEG和GIF文件的大小 - 对视觉质量没有影响。 Basic+JPEG(有损),进一步减少JPEG文件的大小,以加快图像加载。 较大的JPEG文件被转换为渐进式图像,首先加载较低分辨率的图像,最后是较高的分辨率版本。 不建议用于高像素的摄影网站。
func (*StarshieldClient) ChangePrefetchPreloadSetting ¶
func (c *StarshieldClient) ChangePrefetchPreloadSetting(request *starshield.ChangePrefetchPreloadSettingRequest) (*starshield.ChangePrefetchPreloadSettingResponse, error)
星盾将预取包含在响应标头中的任何 URL。这只限于企业级域。
func (*StarshieldClient) ChangePrivacyPassSetting ¶
func (c *StarshieldClient) ChangePrivacyPassSetting(request *starshield.ChangePrivacyPassSettingRequest) (*starshield.ChangePrivacyPassSettingResponse, error)
Privacy Pass是一个由Privacy Pass团队开发的浏览器扩展,旨在改善您的访客的浏览体验。启用Privacy Pass将减少显示给你的访客的验证码的数量。
func (*StarshieldClient) ChangePseudoIPv4Setting ¶
func (c *StarshieldClient) ChangePseudoIPv4Setting(request *starshield.ChangePseudoIPv4SettingRequest) (*starshield.ChangePseudoIPv4SettingResponse, error)
设置Pseudo IPv4(IPv6到IPv4的转换服务)
func (*StarshieldClient) ChangeRocketLoaderSetting ¶
func (c *StarshieldClient) ChangeRocketLoaderSetting(request *starshield.ChangeRocketLoaderSettingRequest) (*starshield.ChangeRocketLoaderSettingResponse, error)
Rocket Loader是一个通用的异步JavaScript优化,它优先渲染你的内容同时异步加载你的网站的Javascript。
开启Rocket Loader将立即改善网页的渲染时间,有时以首次绘制时间(TTFP)以及window.onload时间(假设页面上有JavaScript)来衡量,这对你的搜索排名会产生积极影响。 当打开时,Rocket Loader将自动推迟加载你的HTML中引用的所有Javascript,而不需要配置。
func (*StarshieldClient) ChangeSSLSetting ¶
func (c *StarshieldClient) ChangeSSLSetting(request *starshield.ChangeSSLSettingRequest) (*starshield.ChangeSSLSettingResponse, error)
SSL对访问者的连接进行加密,并保护信用卡号码和其他进出网站的个人数据。
SSL最多需要5分钟才能完全激活。需要在星盾激活你的根域或www域。 Off,访客和星盾之间没有SSL,星盾和你的Web服务器之间也没有SSL(所有HTTP流量)。 Flexible, 访客和星盾之间的 SSL -- 访客在你的网站上看到 HTTPS,但星盾和你的 Web 服务器之间没有 SSL。您不需要在您的 Web 服务器上安装 SSL 证书,但您的访客仍会看到启用 HTTPS 的网站。 Full, 访客和星盾之间的 SSL -- 访客在你的网站上看到 HTTPS,以及星盾和你的 Web 服务器之间的 SSL。您至少需要有自己的 SSL 证书或自签名的证书。 Full (Strict), 访客和星盾之间的 SSL -- 访客在您的网站上看到 HTTPS,以及星盾和您的 Web 服务器之间的 SSL。你需要在你的网络服务器上安装一个有效的SSL证书。 这个证书必须由一个证书机构签署,有一个在未来的到期日,并为请求的域名(主机名)作出回应。
func (*StarshieldClient) ChangeSecurityLevelSetting ¶
func (c *StarshieldClient) ChangeSecurityLevelSetting(request *starshield.ChangeSecurityLevelSettingRequest) (*starshield.ChangeSecurityLevelSettingResponse, error)
为你的网站选择适当的安全配置文件,这将自动调整每个安全设置。如果你选择定制一个单独的安全设置,该配置文件将成为自定义。
func (*StarshieldClient) ChangeServerSideExcludeSetting ¶
func (c *StarshieldClient) ChangeServerSideExcludeSetting(request *starshield.ChangeServerSideExcludeSettingRequest) (*starshield.ChangeServerSideExcludeSettingResponse, error)
如果你的网站上有敏感的内容,你想让真正的访问者看到,但你想对可疑的访问者进行隐藏,你所要做的就是用星盾SSE标签来包装这些内容。
用下面的SSE标签包住任何你想不让可疑访客看到的内容,<!--sse--><!--/sse-->。 例如,<!--sse-->不好的访问者不会看到我的电话号码,555-555-5555<!--/sse-->。注意,SSE只对HTML起作用。 如果你启用了HTML最小化功能,当你的HTML源代码通过星盾提供服务时,你不会看到SSE标签。 在这种情况下,SSE 仍将发挥作用,因为星盾的 HTML 缩减和 SSE 功能是在资源通过我们的网络传输给我们时即时发生的。当资源通过我们的网络移动到访问者的计算机上时,SSE 仍会发挥作用。
func (*StarshieldClient) ChangeTLS1_3Setting ¶
func (c *StarshieldClient) ChangeTLS1_3Setting(request *starshield.ChangeTLS1_3SettingRequest) (*starshield.ChangeTLS1_3SettingResponse, error)
为该域启用加密TLS 1.3功能。
func (*StarshieldClient) ChangeTLSClientAuthSetting ¶
func (c *StarshieldClient) ChangeTLSClientAuthSetting(request *starshield.ChangeTLSClientAuthSettingRequest) (*starshield.ChangeTLSClientAuthSettingResponse, error)
TLS 客户端授权要求星盾使用客户端证书连接到您的源服务器(Enterprise Only)。
func (*StarshieldClient) ChangeTrueClientIPSetting ¶
func (c *StarshieldClient) ChangeTrueClientIPSetting(request *starshield.ChangeTrueClientIPSettingRequest) (*starshield.ChangeTrueClientIPSettingResponse, error)
允许客户继续在我们发送给源的头中使用真正的客户IP。这只限于企业级域。
func (*StarshieldClient) ChangeWebApplicationFirewallWAFSetting ¶
func (c *StarshieldClient) ChangeWebApplicationFirewallWAFSetting(request *starshield.ChangeWebApplicationFirewallWAFSettingRequest) (*starshield.ChangeWebApplicationFirewallWAFSettingResponse, error)
WAF检查对您网站的HTTP请求。它检查GET和POST请求,并应用规则来帮助从合法的网站访问者中过滤出非法流量。星盾 WAF 检查网站地址或 URL 以检测任何不正常的东西。
如果星盾 WAF确定了可疑的用户行为。那么 WAF 将用一个页面 "挑战 "网络访客,要求他们成功提交验证码以继续其行动。 如果挑战失败,行动将被停止。这意味着 星盾 的 WAF 将在任何被识别为非法的流量到达您的源网络服务器之前将其阻止。
func (*StarshieldClient) ChangeWebPSetting ¶
func (c *StarshieldClient) ChangeWebPSetting(request *starshield.ChangeWebPSettingRequest) (*starshield.ChangeWebPSettingResponse, error)
当请求图像的客户端支持WebP图像编解码器时。当WebP比原始图像格式具有性能优势时,星盾将提供WebP版本的图像。
func (*StarshieldClient) ChangeWebSocketsSetting ¶
func (c *StarshieldClient) ChangeWebSocketsSetting(request *starshield.ChangeWebSocketsSettingRequest) (*starshield.ChangeWebSocketsSettingResponse, error)
WebSockets是客户端和源服务器之间持续的开放连接。在WebSockets连接中,客户端和源服务器可以来回传递数据,而不需要重新建立会话。
这使得在WebSockets连接中的数据交换非常快。WebSockets经常被用于实时应用,如即时聊天和游戏。
func (*StarshieldClient) CheckInstancesName ¶
func (c *StarshieldClient) CheckInstancesName(request *starshield.CheckInstancesNameRequest) (*starshield.CheckInstancesNameResponse, error)
检查实例名称
func (*StarshieldClient) CreateDNSRecord ¶
func (c *StarshieldClient) CreateDNSRecord(request *starshield.CreateDNSRecordRequest) (*starshield.CreateDNSRecordResponse, error)
创建DNS记录
func (*StarshieldClient) CreateFilters ¶
func (c *StarshieldClient) CreateFilters(request *starshield.CreateFiltersRequest) (*starshield.CreateFiltersResponse, error)
创建新过滤器
func (*StarshieldClient) CreateFirewallRules ¶
func (c *StarshieldClient) CreateFirewallRules(request *starshield.CreateFirewallRulesRequest) (*starshield.CreateFirewallRulesResponse, error)
创建新的防火墙规则。
func (*StarshieldClient) CreateFlowPack ¶
func (c *StarshieldClient) CreateFlowPack(request *starshield.CreateFlowPackRequest) (*starshield.CreateFlowPackResponse, error)
购买流量包
func (*StarshieldClient) CreateInstance ¶
func (c *StarshieldClient) CreateInstance(request *starshield.CreateInstanceRequest) (*starshield.CreateInstanceResponse, error)
创建套餐实例
func (*StarshieldClient) CreatePageRule ¶
func (c *StarshieldClient) CreatePageRule(request *starshield.CreatePageRuleRequest) (*starshield.CreatePageRuleResponse, error)
创建页面规则
func (*StarshieldClient) CreateSSLConfiguration ¶
func (c *StarshieldClient) CreateSSLConfiguration(request *starshield.CreateSSLConfigurationRequest) (*starshield.CreateSSLConfigurationResponse, error)
上载域的新SSL证书
func (*StarshieldClient) CreateZone ¶
func (c *StarshieldClient) CreateZone(request *starshield.CreateZoneRequest) (*starshield.CreateZoneResponse, error)
创建域
func (*StarshieldClient) DeleteAdvancedCertificateManagerCertificatePack ¶
func (c *StarshieldClient) DeleteAdvancedCertificateManagerCertificatePack(request *starshield.DeleteAdvancedCertificateManagerCertificatePackRequest) (*starshield.DeleteAdvancedCertificateManagerCertificatePackResponse, error)
对于给定域,删除高级证书包
func (*StarshieldClient) DeleteDNSRecord ¶
func (c *StarshieldClient) DeleteDNSRecord(request *starshield.DeleteDNSRecordRequest) (*starshield.DeleteDNSRecordResponse, error)
func (*StarshieldClient) DeleteIndividualFirewallRules ¶
func (c *StarshieldClient) DeleteIndividualFirewallRules(request *starshield.DeleteIndividualFirewallRulesRequest) (*starshield.DeleteIndividualFirewallRulesResponse, error)
删除现有防火墙规则。
func (*StarshieldClient) DeletePageRule ¶
func (c *StarshieldClient) DeletePageRule(request *starshield.DeletePageRuleRequest) (*starshield.DeletePageRuleResponse, error)
删除页面规则
func (*StarshieldClient) DeleteSSLConfiguration ¶
func (c *StarshieldClient) DeleteSSLConfiguration(request *starshield.DeleteSSLConfigurationRequest) (*starshield.DeleteSSLConfigurationResponse, error)
从域中删除SSL证书。
func (*StarshieldClient) DeleteZone ¶
func (c *StarshieldClient) DeleteZone(request *starshield.DeleteZoneRequest) (*starshield.DeleteZoneResponse, error)
删除存在的域名
func (*StarshieldClient) DescribeBotStatus ¶
func (c *StarshieldClient) DescribeBotStatus(request *starshield.DescribeBotStatusRequest) (*starshield.DescribeBotStatusResponse, error)
查询Bot开启状态
func (*StarshieldClient) DescribeInstanceByOrderNo ¶
func (c *StarshieldClient) DescribeInstanceByOrderNo(request *starshield.DescribeInstanceByOrderNoRequest) (*starshield.DescribeInstanceByOrderNoResponse, error)
根据订单号查询套餐实例详情
func (*StarshieldClient) DescribeInstances ¶
func (c *StarshieldClient) DescribeInstances(request *starshield.DescribeInstancesRequest) (*starshield.DescribeInstancesResponse, error)
套餐实例列表信息查询
func (*StarshieldClient) DescribePackage ¶
func (c *StarshieldClient) DescribePackage(request *starshield.DescribePackageRequest) (*starshield.DescribePackageResponse, error)
套餐包详情查询
func (*StarshieldClient) DescribePackages ¶
func (c *StarshieldClient) DescribePackages(request *starshield.DescribePackagesRequest) (*starshield.DescribePackagesResponse, error)
套餐包列表查询
func (*StarshieldClient) DisableLogger ¶
func (c *StarshieldClient) DisableLogger()
func (*StarshieldClient) EditFirewallPackage ¶
func (c *StarshieldClient) EditFirewallPackage(request *starshield.EditFirewallPackageRequest) (*starshield.EditFirewallPackageResponse, error)
更改异常检测类型WAF规则包的灵敏度和操作
func (*StarshieldClient) EditRuleGroup ¶
func (c *StarshieldClient) EditRuleGroup(request *starshield.EditRuleGroupRequest) (*starshield.EditRuleGroupResponse, error)
更新规则组的状态
func (*StarshieldClient) EditUniversalSSLSettings ¶
func (c *StarshieldClient) EditUniversalSSLSettings(request *starshield.EditUniversalSSLSettingsRequest) (*starshield.EditUniversalSSLSettingsResponse, error)
修补域的通用SSL设置
func (*StarshieldClient) EditZoneSettingsInfo ¶
func (c *StarshieldClient) EditZoneSettingsInfo(request *starshield.EditZoneSettingsInfoRequest) (*starshield.EditZoneSettingsInfoResponse, error)
批量更新域的设置
func (*StarshieldClient) FirewallPackageDetails ¶
func (c *StarshieldClient) FirewallPackageDetails(request *starshield.FirewallPackageDetailsRequest) (*starshield.FirewallPackageDetailsResponse, error)
获取有关单个防火墙包的信息
func (*StarshieldClient) Get0_RTTSessionResumptionSetting ¶
func (c *StarshieldClient) Get0_RTTSessionResumptionSetting(request *starshield.Get0_RTTSessionResumptionSettingRequest) (*starshield.Get0_RTTSessionResumptionSettingResponse, error)
Value of the 0-RTT setting
func (*StarshieldClient) GetAdvancedDDOSSetting ¶
func (c *StarshieldClient) GetAdvancedDDOSSetting(request *starshield.GetAdvancedDDOSSettingRequest) (*starshield.GetAdvancedDDOSSettingResponse, error)
对您的网站进行高级保护,防止分布式拒绝服务(DDoS)攻击。这是一个不可编辑的值。
func (*StarshieldClient) GetAllZoneSettings ¶
func (c *StarshieldClient) GetAllZoneSettings(request *starshield.GetAllZoneSettingsRequest) (*starshield.GetAllZoneSettingsResponse, error)
域的相关配置
func (*StarshieldClient) GetAlwaysOnlineSetting ¶
func (c *StarshieldClient) GetAlwaysOnlineSetting(request *starshield.GetAlwaysOnlineSettingRequest) (*starshield.GetAlwaysOnlineSettingResponse, error)
获取当前Always Online的配置。当Always Online开启时,在你的源站离线期间,星盾会提供已缓存过的页面。
func (*StarshieldClient) GetAlwaysUseHTTPSSetting ¶
func (c *StarshieldClient) GetAlwaysUseHTTPSSetting(request *starshield.GetAlwaysUseHTTPSSettingRequest) (*starshield.GetAlwaysUseHTTPSSettingResponse, error)
对所有使用"http"的URL的请求,用301重定向到相应的 "https" URL。如果你只想对一个子集的请求进行重定向,可以考虑创建一个"Always use HTTPS"的页面规则。
func (*StarshieldClient) GetAutomaticHTTPSRewritesSetting ¶
func (c *StarshieldClient) GetAutomaticHTTPSRewritesSetting(request *starshield.GetAutomaticHTTPSRewritesSettingRequest) (*starshield.GetAutomaticHTTPSRewritesSettingResponse, error)
为该域启用自动HTTPS重写功能。
func (*StarshieldClient) GetBrowserCacheTTLSetting ¶
func (c *StarshieldClient) GetBrowserCacheTTLSetting(request *starshield.GetBrowserCacheTTLSettingRequest) (*starshield.GetBrowserCacheTTLSettingResponse, error)
浏览器缓存TTL(以秒为单位)指定星盾缓存资源将在访问者的计算机上保留多长时间。星盾将遵守服务器指定的任何更长时间。
func (*StarshieldClient) GetBrowserCheckSetting ¶
func (c *StarshieldClient) GetBrowserCheckSetting(request *starshield.GetBrowserCheckSettingRequest) (*starshield.GetBrowserCheckSettingResponse, error)
浏览器完整性检查与不良行为检查类似,寻找最常被垃圾邮件发送者滥用的常见HTTP头,并拒绝他们访问您的页面。它还会对没有用户代理或非标准用户代理(也是滥用机器人、爬虫或访客常用的)的访客提出挑战质询。
func (*StarshieldClient) GetChallengeTTLSetting ¶
func (c *StarshieldClient) GetChallengeTTLSetting(request *starshield.GetChallengeTTLSettingRequest) (*starshield.GetChallengeTTLSettingResponse, error)
指定访问者在成功完成一项挑战(如验证码)后允许访问您的网站多长时间。在TTL过期后,访问者将不得不完成新的挑战。我们建议设置为15-45分钟,并将尝试遵守任何超过45分钟的设置。
func (*StarshieldClient) GetCiphersSetting ¶
func (c *StarshieldClient) GetCiphersSetting(request *starshield.GetCiphersSettingRequest) (*starshield.GetCiphersSettingResponse, error)
一个用于TLS终端的密码允许列表。这些密码必须是BoringSSL的格式。
func (*StarshieldClient) GetDevelopmentModeSetting ¶
func (c *StarshieldClient) GetDevelopmentModeSetting(request *starshield.GetDevelopmentModeSettingRequest) (*starshield.GetDevelopmentModeSettingResponse, error)
如果你需要对你的网站进行修改,开发模式可以让你暂时进入网站的开发模式。这将绕过星盾的加速缓存,并降低您的网站速度。
但如果您正在对可缓存的内容(如图片、css 或 JavaScript)进行更改,并希望立即看到这些更改,这时就很有用。一旦进入,开发模式将持续3小时,然后自动切换关闭。
func (*StarshieldClient) GetEmailObfuscationSetting ¶
func (c *StarshieldClient) GetEmailObfuscationSetting(request *starshield.GetEmailObfuscationSettingRequest) (*starshield.GetEmailObfuscationSettingResponse, error)
在你的网页上对电子邮件地址进行加密,以防止机器人入侵,同时保持它们对人类可见。
func (*StarshieldClient) GetEnableErrorPagesOnSetting ¶
func (c *StarshieldClient) GetEnableErrorPagesOnSetting(request *starshield.GetEnableErrorPagesOnSettingRequest) (*starshield.GetEnableErrorPagesOnSettingResponse, error)
星盾将代源服务器上任何 502、504 错误的客户错误页面,而不是显示默认的星盾错误页面。这不适用于 522 错误,并且仅限于企业级域。
func (*StarshieldClient) GetEnableQueryStringSortSetting ¶
func (c *StarshieldClient) GetEnableQueryStringSortSetting(request *starshield.GetEnableQueryStringSortSettingRequest) (*starshield.GetEnableQueryStringSortSettingResponse, error)
星盾将把具有相同查询字符串的文件视为缓存中的同一个文件,而不管查询字符串的顺序如何。这只限于企业级域。
func (*StarshieldClient) GetHTTP2EdgePrioritizationSetting ¶
func (c *StarshieldClient) GetHTTP2EdgePrioritizationSetting(request *starshield.GetHTTP2EdgePrioritizationSettingRequest) (*starshield.GetHTTP2EdgePrioritizationSettingResponse, error)
HTTP/2边缘优化,优化了通过HTTP/2提供的资源交付,提高了页面加载性能。当与Worker结合使用时,它还支持对内容交付的精细控制。
func (*StarshieldClient) GetHTTP2Setting ¶
func (c *StarshieldClient) GetHTTP2Setting(request *starshield.GetHTTP2SettingRequest) (*starshield.GetHTTP2SettingResponse, error)
获取HTTP2设置的状态
func (*StarshieldClient) GetHTTP3Setting ¶
func (c *StarshieldClient) GetHTTP3Setting(request *starshield.GetHTTP3SettingRequest) (*starshield.GetHTTP3SettingResponse, error)
获取HTTP3设置的状态
func (*StarshieldClient) GetHotlinkProtectionSetting ¶
func (c *StarshieldClient) GetHotlinkProtectionSetting(request *starshield.GetHotlinkProtectionSettingRequest) (*starshield.GetHotlinkProtectionSettingResponse, error)
启用后,热链路保护选项可确保其他网站无法通过建立使用您网站上托管的图像的页面来占用您的带宽。只要您的网站上的图像请求被星盾选中,我们就会检查以确保这不是其他网站在请求它们。
人们仍然能够从你的网页上下载和查看图像,但其他网站将无法窃取它们用于自己的网页。
func (*StarshieldClient) GetIPGeolocationSetting ¶
func (c *StarshieldClient) GetIPGeolocationSetting(request *starshield.GetIPGeolocationSettingRequest) (*starshield.GetIPGeolocationSettingResponse, error)
启用IP地理定位,让星盾对您网站的访问者进行地理定位,并将国家代码传递给您。
func (*StarshieldClient) GetIPv6Setting ¶
func (c *StarshieldClient) GetIPv6Setting(request *starshield.GetIPv6SettingRequest) (*starshield.GetIPv6SettingResponse, error)
在所有启用星盾的子域上启用 IPv6。
func (*StarshieldClient) GetImageResizingSetting ¶
func (c *StarshieldClient) GetImageResizingSetting(request *starshield.GetImageResizingSettingRequest) (*starshield.GetImageResizingSettingResponse, error)
图像调整为通过星盾的网络提供的图像提供按需调整、转换和优化。
func (*StarshieldClient) GetMinifySetting ¶
func (c *StarshieldClient) GetMinifySetting(request *starshield.GetMinifySettingRequest) (*starshield.GetMinifySettingResponse, error)
获取你的网站自动最小化资产的配置
func (*StarshieldClient) GetMinimumTLSVersionSetting ¶
func (c *StarshieldClient) GetMinimumTLSVersionSetting(request *starshield.GetMinimumTLSVersionSettingRequest) (*starshield.GetMinimumTLSVersionSettingResponse, error)
获取HTTPS请求允许使用的TLS协议的最低版本。例如,如果是TLS 1.1,那么TLS 1.0连接将被拒绝,而1.1、1.2和1.3(如果启用)将被允许。
func (*StarshieldClient) GetMirageSetting ¶
func (c *StarshieldClient) GetMirageSetting(request *starshield.GetMirageSettingRequest) (*starshield.GetMirageSettingResponse, error)
自动优化移动设备上网站访问者的图像加载
func (*StarshieldClient) GetMobileRedirectSetting ¶
func (c *StarshieldClient) GetMobileRedirectSetting(request *starshield.GetMobileRedirectSettingRequest) (*starshield.GetMobileRedirectSettingResponse, error)
自动将移动设备上的访问者重定向到一个移动优化的子域上
func (*StarshieldClient) GetOpportunisticEncryptionSetting ¶
func (c *StarshieldClient) GetOpportunisticEncryptionSetting(request *starshield.GetOpportunisticEncryptionSettingRequest) (*starshield.GetOpportunisticEncryptionSettingResponse, error)
获取当前域随机加密设置
func (*StarshieldClient) GetPolishSetting ¶
func (c *StarshieldClient) GetPolishSetting(request *starshield.GetPolishSettingRequest) (*starshield.GetPolishSettingResponse, error)
剥离元数据并压缩你的图像,以加快页面加载时间。
Basic(无损),减少PNG、JPEG和GIF文件的大小 - 对视觉质量没有影响。 Basic+JPEG(有损),进一步减少JPEG文件的大小,以加快图像加载。 较大的JPEG文件被转换为渐进式图像,首先加载较低分辨率的图像,最后是较高的分辨率版本。 不建议用于高像素的摄影网站。
func (*StarshieldClient) GetPrefetchPreloadSetting ¶
func (c *StarshieldClient) GetPrefetchPreloadSetting(request *starshield.GetPrefetchPreloadSettingRequest) (*starshield.GetPrefetchPreloadSettingResponse, error)
星盾将预取包含在响应标头中的任何 URL。这只限于企业级域。
func (*StarshieldClient) GetPrivacyPassSetting ¶
func (c *StarshieldClient) GetPrivacyPassSetting(request *starshield.GetPrivacyPassSettingRequest) (*starshield.GetPrivacyPassSettingResponse, error)
Privacy Pass是一个由Privacy Pass团队开发的浏览器扩展,旨在改善您的访客的浏览体验。启用Privacy Pass将减少显示给你的访客的验证码的数量。
func (*StarshieldClient) GetPseudoIPv4Setting ¶
func (c *StarshieldClient) GetPseudoIPv4Setting(request *starshield.GetPseudoIPv4SettingRequest) (*starshield.GetPseudoIPv4SettingResponse, error)
获取Pseudo IPv4(IPv6到IPv4的转换服务)的设置
func (*StarshieldClient) GetRocketLoaderSetting ¶
func (c *StarshieldClient) GetRocketLoaderSetting(request *starshield.GetRocketLoaderSettingRequest) (*starshield.GetRocketLoaderSettingResponse, error)
Rocket Loader是一个通用的异步JavaScript优化,它优先渲染你的内容同时异步加载你的网站的Javascript。
开启Rocket Loader将立即改善网页的渲染时间,有时以首次绘制时间(TTFP)以及window.onload时间(假设页面上有JavaScript)来衡量,这对你的搜索排名会产生积极影响。 当打开时,Rocket Loader将自动推迟加载你的HTML中引用的所有Javascript,而不需要配置。
func (*StarshieldClient) GetSSLSetting ¶
func (c *StarshieldClient) GetSSLSetting(request *starshield.GetSSLSettingRequest) (*starshield.GetSSLSettingResponse, error)
SSL对访问者的连接进行加密,并保护信用卡号码和其他进出网站的个人数据。
SSL最多需要5分钟才能完全激活。需要在星盾激活你的根域或www域。 Off,访客和星盾之间没有SSL,星盾和你的Web服务器之间也没有SSL(所有HTTP流量)。 Flexible, 访客和星盾之间的 SSL -- 访客在你的网站上看到 HTTPS,但星盾和你的 Web 服务器之间没有 SSL。您不需要在您的 Web 服务器上安装 SSL 证书,但您的访客仍会看到启用 HTTPS 的网站。 Full, 访客和星盾之间的 SSL -- 访客在你的网站上看到 HTTPS,以及星盾和你的 Web 服务器之间的 SSL。您至少需要有自己的 SSL 证书或自签名的证书。 Full (Strict), 访客和星盾之间的 SSL -- 访客在您的网站上看到 HTTPS,以及星盾和您的 Web 服务器之间的 SSL。你需要在你的网络服务器上安装一个有效的SSL证书。 这个证书必须由一个证书机构签署,有一个在未来的到期日,并为请求的域名(主机名)作出回应。
func (*StarshieldClient) GetSecurityHeaderHSTSSetting ¶
func (c *StarshieldClient) GetSecurityHeaderHSTSSetting(request *starshield.GetSecurityHeaderHSTSSettingRequest) (*starshield.GetSecurityHeaderHSTSSettingResponse, error)
星盾域的安全标头。
func (*StarshieldClient) GetSecurityLevelSetting ¶
func (c *StarshieldClient) GetSecurityLevelSetting(request *starshield.GetSecurityLevelSettingRequest) (*starshield.GetSecurityLevelSettingResponse, error)
为你的网站选择适当的安全配置文件,这将自动调整每个安全设置。如果你选择定制一个单独的安全设置,该配置文件将成为自定义。
func (*StarshieldClient) GetServerSideExcludeSetting ¶
func (c *StarshieldClient) GetServerSideExcludeSetting(request *starshield.GetServerSideExcludeSettingRequest) (*starshield.GetServerSideExcludeSettingResponse, error)
如果你的网站上有敏感的内容,你想让真正的访问者看到,但你想对可疑的访问者进行隐藏,你所要做的就是用星盾SSE标签来包装这些内容。
用下面的SSE标签包住任何你想不让可疑访客看到的内容,<!--sse--><!--/sse-->。 例如,<!--sse-->不好的访问者不会看到我的电话号码,555-555-5555<!--/sse-->。注意,SSE只对HTML起作用。 如果你启用了HTML最小化功能,当你的HTML源代码通过星盾提供服务时,你不会看到SSE标签。 在这种情况下,SSE 仍将发挥作用,因为星盾的 HTML 缩减和 SSE 功能是在资源通过我们的网络传输给我们时即时发生的。当资源通过我们的网络移动到访问者的计算机上时,SSE 仍会发挥作用。
func (*StarshieldClient) GetTLSClientAuthSetting ¶
func (c *StarshieldClient) GetTLSClientAuthSetting(request *starshield.GetTLSClientAuthSettingRequest) (*starshield.GetTLSClientAuthSettingResponse, error)
TLS 客户端授权要求星盾使用客户端证书连接到您的源服务器(Enterprise Only)。
func (*StarshieldClient) GetTrueClientIPSetting ¶
func (c *StarshieldClient) GetTrueClientIPSetting(request *starshield.GetTrueClientIPSettingRequest) (*starshield.GetTrueClientIPSettingResponse, error)
允许客户继续在我们发送给源的头中使用真正的客户IP。这只限于企业级域。
func (*StarshieldClient) GetWebApplicationFirewallWAFSetting ¶
func (c *StarshieldClient) GetWebApplicationFirewallWAFSetting(request *starshield.GetWebApplicationFirewallWAFSettingRequest) (*starshield.GetWebApplicationFirewallWAFSettingResponse, error)
WAF检查对您网站的HTTP请求。它检查GET和POST请求,并应用规则来帮助从合法的网站访问者中过滤出非法流量。星盾 WAF 检查网站地址或 URL 以检测任何不正常的东西。
如果星盾 WAF确定了可疑的用户行为。那么 WAF 将用一个页面 "挑战 "网络访客,要求他们成功提交验证码以继续其行动。 如果挑战失败,行动将被停止。这意味着 星盾 的 WAF 将在任何被识别为非法的流量到达您的源网络服务器之前将其阻止。
func (*StarshieldClient) GetWebPSetting ¶
func (c *StarshieldClient) GetWebPSetting(request *starshield.GetWebPSettingRequest) (*starshield.GetWebPSettingResponse, error)
当请求图像的客户端支持WebP图像编解码器时。当WebP比原始图像格式具有性能优势时,星盾将提供WebP版本的图像。
func (*StarshieldClient) GetWebSocketsSetting ¶
func (c *StarshieldClient) GetWebSocketsSetting(request *starshield.GetWebSocketsSettingRequest) (*starshield.GetWebSocketsSettingResponse, error)
WebSockets是客户端和源服务器之间持续的开放连接。在WebSockets连接中,客户端和源服务器可以来回传递数据,而不需要重新建立会话。
这使得在WebSockets连接中的数据交换非常快。WebSockets经常被用于实时应用,如即时聊天和游戏。
func (*StarshieldClient) GetZoneEnableTLS1_3Setting ¶
func (c *StarshieldClient) GetZoneEnableTLS1_3Setting(request *starshield.GetZoneEnableTLS1_3SettingRequest) (*starshield.GetZoneEnableTLS1_3SettingResponse, error)
为该域启用加密TLS 1.3功能。
func (*StarshieldClient) ListAvailableCustomPages ¶
func (c *StarshieldClient) ListAvailableCustomPages(request *starshield.ListAvailableCustomPagesRequest) (*starshield.ListAvailableCustomPagesResponse, error)
域可以使用的可用自定义页面列表
func (*StarshieldClient) ListAvailablePageRuleSetting ¶
func (c *StarshieldClient) ListAvailablePageRuleSetting(request *starshield.ListAvailablePageRuleSettingRequest) (*starshield.ListAvailablePageRuleSettingResponse, error)
func (*StarshieldClient) ListCertificatePacks ¶
func (c *StarshieldClient) ListCertificatePacks(request *starshield.ListCertificatePacksRequest) (*starshield.ListCertificatePacksResponse, error)
对于给定域,列出所有激活的证书包
func (*StarshieldClient) ListDNSRecords ¶
func (c *StarshieldClient) ListDNSRecords(request *starshield.ListDNSRecordsRequest) (*starshield.ListDNSRecordsResponse, error)
列出、搜索、排序和筛选域的DNS记录。
func (*StarshieldClient) ListFirewallPackages ¶
func (c *StarshieldClient) ListFirewallPackages(request *starshield.ListFirewallPackagesRequest) (*starshield.ListFirewallPackagesResponse, error)
检索域的防火墙包
func (*StarshieldClient) ListOfFirewallRules ¶
func (c *StarshieldClient) ListOfFirewallRules(request *starshield.ListOfFirewallRulesRequest) (*starshield.ListOfFirewallRulesResponse, error)
列出当前定义的所有防火墙规则。
func (*StarshieldClient) ListPageRules ¶
func (c *StarshieldClient) ListPageRules(request *starshield.ListPageRulesRequest) (*starshield.ListPageRulesResponse, error)
获取页面规则列表
func (*StarshieldClient) ListRuleGroups ¶
func (c *StarshieldClient) ListRuleGroups(request *starshield.ListRuleGroupsRequest) (*starshield.ListRuleGroupsResponse, error)
搜索、列出和排序包中包含的规则组
func (*StarshieldClient) ListRules ¶
func (c *StarshieldClient) ListRules(request *starshield.ListRulesRequest) (*starshield.ListRulesResponse, error)
包内的搜索、排序和筛选规则
func (*StarshieldClient) ListSSLConfigurations ¶
func (c *StarshieldClient) ListSSLConfigurations(request *starshield.ListSSLConfigurationsRequest) (*starshield.ListSSLConfigurationsResponse, error)
列出、搜索和筛选所有自定义SSL证书。
func (*StarshieldClient) ListZones ¶
func (c *StarshieldClient) ListZones(request *starshield.ListZonesRequest) (*starshield.ListZonesResponse, error)
列出、搜索、排序和筛选您的域
func (*StarshieldClient) ModifyInstance ¶
func (c *StarshieldClient) ModifyInstance(request *starshield.ModifyInstanceRequest) (*starshield.ModifyInstanceResponse, error)
升级套餐实例
func (*StarshieldClient) OpenFirewallBot ¶
func (c *StarshieldClient) OpenFirewallBot(request *starshield.OpenFirewallBotRequest) (*starshield.OpenFirewallBotResponse, error)
开启BOT
func (*StarshieldClient) OrderAdvancedCertificateManagerCertificatePack ¶
func (c *StarshieldClient) OrderAdvancedCertificateManagerCertificatePack(request *starshield.OrderAdvancedCertificateManagerCertificatePackRequest) (*starshield.OrderAdvancedCertificateManagerCertificatePackResponse, error)
对于一个特定域,订购一个高级证书包
func (*StarshieldClient) PurgeAllFiles ¶
func (c *StarshieldClient) PurgeAllFiles(request *starshield.PurgeAllFilesRequest) (*starshield.PurgeAllFilesResponse, error)
从星盾的缓存中删除所有文件
func (*StarshieldClient) PurgeFilesByCache_TagsAndHostOrPrefix ¶
func (c *StarshieldClient) PurgeFilesByCache_TagsAndHostOrPrefix(request *starshield.PurgeFilesByCache_TagsAndHostOrPrefixRequest) (*starshield.PurgeFilesByCache_TagsAndHostOrPrefixResponse, error)
通过指定主机、关联的缓存标记或前缀,从星盾的缓存中精确删除一个或多个文件。
注意,缓存标记、主机和前缀清除每24小时的速率限制为30000次清除API调用。一次API调用最多可以清除30个标记、主机或前缀。 对于需要以更大容量进行清除的客户,可以提高此速率限制。
func (*StarshieldClient) PurgeFilesByURL ¶
func (c *StarshieldClient) PurgeFilesByURL(request *starshield.PurgeFilesByURLRequest) (*starshield.PurgeFilesByURLResponse, error)
通过指定URL,从星盾的缓存中细化删除一个或多个文件。
要清除带有自定义缓存key的文件,请包括用于计算缓存key的报头。 例如要清除缓存key中含有${geo}或${devicetype}的文件,请包括CF-Device-Type或CF-IPCountry报头。 注意:当包含源报头时,请确保包括scheme协议和hostname主机名。如果是默认端口,可以省略端口号(http为80,https为443),否则必须包含端口号。
func (*StarshieldClient) RuleGroupDetails ¶
func (c *StarshieldClient) RuleGroupDetails(request *starshield.RuleGroupDetailsRequest) (*starshield.RuleGroupDetailsResponse, error)
获取单个规则组
func (*StarshieldClient) SelectDetailList ¶
func (c *StarshieldClient) SelectDetailList(request *starshield.SelectDetailListRequest) (*starshield.SelectDetailListResponse, error)
套餐实例续费回调查询
func (*StarshieldClient) SetConfig ¶
func (c *StarshieldClient) SetConfig(config *core.Config)
func (*StarshieldClient) SetLogger ¶
func (c *StarshieldClient) SetLogger(logger core.Logger)
func (*StarshieldClient) UniversalSSLSettingsDetails ¶
func (c *StarshieldClient) UniversalSSLSettingsDetails(request *starshield.UniversalSSLSettingsDetailsRequest) (*starshield.UniversalSSLSettingsDetailsResponse, error)
获取域的通用SSL证书设置
func (*StarshieldClient) UpdateCustomPageURL ¶
func (c *StarshieldClient) UpdateCustomPageURL(request *starshield.UpdateCustomPageURLRequest) (*starshield.UpdateCustomPageURLResponse, error)
更新自定义页面URL
func (*StarshieldClient) UpdateDNSRecord ¶
func (c *StarshieldClient) UpdateDNSRecord(request *starshield.UpdateDNSRecordRequest) (*starshield.UpdateDNSRecordResponse, error)
func (*StarshieldClient) UpdateIndividualFilter ¶
func (c *StarshieldClient) UpdateIndividualFilter(request *starshield.UpdateIndividualFilterRequest) (*starshield.UpdateIndividualFilterResponse, error)
更新一个现有的筛选器。
func (*StarshieldClient) UpdateIndividualFirewallRule ¶
func (c *StarshieldClient) UpdateIndividualFirewallRule(request *starshield.UpdateIndividualFirewallRuleRequest) (*starshield.UpdateIndividualFirewallRuleResponse, error)
更新一个单独的现有防火墙规则。
func (*StarshieldClient) UpdatePageRule ¶
func (c *StarshieldClient) UpdatePageRule(request *starshield.UpdatePageRuleRequest) (*starshield.UpdatePageRuleResponse, error)
替换页面规则。最终规则将与此请求传递的数据完全匹配。