Documentation ¶
Index ¶
- type AzionApplicationConfig
- type AzionApplicationOptions
- type AzionApplicationSimple
- type AzionJsonDataApplication
- type AzionJsonDataCacheSettings
- type AzionJsonDataDomain
- type AzionJsonDataFunction
- type AzionJsonDataOrigin
- type AzionJsonDataPurge
- type AzionJsonDataRules
- type AzionJsonDataRulesEngine
- type BuildConf
- type BuildInfo
- type CacheConf
- type CacheSetting
- type DescribeOptions
- type DevInfo
- type Domains
- type ErrorDetails
- type FileOps
- type InitConf
- type ListOptions
- type LogEntry
- type Logs
- type Manifest
- type Origin
- type PublishConf
- type Purges
- type Result
- type Results
- type RuleEngine
- type RuleIdsStruct
- type SyncOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzionApplicationConfig ¶
type AzionApplicationConfig struct { InitData InitConf `json:"init"` BuildData BuildConf `json:"build"` PublishData PublishConf `json:"publish"` }
type AzionApplicationOptions ¶
type AzionApplicationOptions struct { Test func(path string) error `json:"-"` Name string `json:"name"` Bucket string `json:"bucket"` Preset string `json:"preset"` // framework: react, next, vue, angular and etc Env string `json:"env"` Prefix string `json:"prefix"` NotFirstRun bool `json:"not-first-run"` Function AzionJsonDataFunction `json:"function"` Application AzionJsonDataApplication `json:"application"` Domain AzionJsonDataDomain `json:"domain"` RtPurge AzionJsonDataPurge `json:"rt-purge"` Origin []AzionJsonDataOrigin `json:"origin"` RulesEngine AzionJsonDataRulesEngine `json:"rules-engine"` CacheSettings []AzionJsonDataCacheSettings `json:"cache-settings"` }
type AzionApplicationSimple ¶
type AzionApplicationSimple struct { Name string `json:"name"` Type string `json:"type"` Domain AzionJsonDataDomain `json:"domain"` Application AzionJsonDataApplication `json:"application"` }
type AzionJsonDataDomain ¶
type AzionJsonDataFunction ¶
type AzionJsonDataOrigin ¶
type AzionJsonDataPurge ¶
type AzionJsonDataPurge struct {
PurgeOnPublish bool `json:"purge_on_publish"`
}
type AzionJsonDataRules ¶
type AzionJsonDataRulesEngine ¶
type AzionJsonDataRulesEngine struct { Created bool `json:"created"` Rules []AzionJsonDataRules `json:"rules"` }
type CacheSetting ¶
type CacheSetting struct { Name *string `json:"name,omitempty"` BrowserCacheSettings *string `json:"browser_cache_settings,omitempty"` BrowserCacheSettingsMaximumTtl *int64 `json:"browser_cache_settings_maximum_ttl,omitempty"` CdnCacheSettings *string `json:"cdn_cache_settings,omitempty"` CdnCacheSettingsMaximumTtl *int64 `json:"cdn_cache_settings_maximum_ttl,omitempty"` CacheByQueryString *string `json:"cache_by_query_string,omitempty"` QueryStringFields []string `json:"query_string_fields,omitempty"` EnableQueryStringSort *bool `json:"enable_query_string_sort,omitempty"` CacheByCookies *string `json:"cache_by_cookies,omitempty"` CookieNames []string `json:"cookie_names,omitempty"` AdaptiveDeliveryAction *string `json:"adaptive_delivery_action,omitempty"` DeviceGroup []int32 `json:"device_group,omitempty"` EnableCachingForPost *bool `json:"enable_caching_for_post,omitempty"` L2CachingEnabled *bool `json:"l2_caching_enabled,omitempty"` IsSliceConfigurationEnabled *bool `json:"is_slice_configuration_enabled,omitempty"` IsSliceEdgeCachingEnabled *bool `json:"is_slice_edge_caching_enabled,omitempty"` IsSliceL2CachingEnabled *bool `json:"is_slice_l2_caching_enabled,omitempty"` SliceConfigurationRange *int64 `json:"slice_configuration_range,omitempty"` EnableCachingForOptions *bool `json:"enable_caching_for_options,omitempty"` EnableStaleCache *bool `json:"enable_stale_cache,omitempty"` L2Region *string `json:"l2_region,omitempty"` }
type DescribeOptions ¶
type Domains ¶
type Domains struct { Name string `json:"name,omitempty"` Cnames []string `json:"cnames,omitempty"` CnameAccessOnly *bool `json:"cname_access_only,omitempty"` IsActive *bool `json:"is_active,omitempty"` EdgeApplicationId int64 `json:"edge_application_id,omitempty"` DigitalCertificateId *string `json:"digital_certificate_id,omitempty"` Environment *string `json:"environment,omitempty"` IsMtlsEnabled *bool `json:"is_mtls_enabled,omitempty"` MtlsTrustedCaCertificateId int64 `json:"mtls_trusted_ca_certificate_id,omitempty"` EdgeFirewallId int64 `json:"edge_firewall_id,omitempty"` MtlsVerification *string `json:"mtls_verification,omitempty"` CrlList []int64 `json:"crl_list,omitempty"` }
type ErrorDetails ¶
type ListOptions ¶
type LogEntry ¶
type LogEntry struct { Content string `json:"content,omitempty"` Timestamp string `json:"timestamp,omitempty"` }
LogEntry represents each log entry with content and timestamp.
type Manifest ¶
type Manifest struct { CacheSettings []CacheSetting `json:"cache"` Origins []Origin `json:"origin"` Rules []RuleEngine `json:"rules"` Domain Domains `json:"domain"` Purge []Purges `json:"purge"` }
type Origin ¶
type Origin struct { Name string `json:"name"` OriginType string `json:"origin_type,omitempty"` Bucket string `json:"bucket,omitempty"` Prefix string `json:"prefix,omitempty"` Addresses []sdk.CreateOriginsRequestAddresses `json:"addresses,omitempty"` HostHeader string `json:"host_header,omitempty"` OriginProtocolPolicy *string `json:"origin_protocol_policy,omitempty"` OriginPath *string `json:"origin_path,omitempty"` HmacAuthentication *bool `json:"hmac_authentication,omitempty"` HmacRegionName *string `json:"hmac_region_name,omitempty"` HmacAccessKey *string `json:"hmac_access_key,omitempty"` HmacSecretKey *string `json:"hmac_secret_key,omitempty"` }
type PublishConf ¶
type Result ¶
type Result struct { Azion *AzionApplicationOptions `json:"azion,omitempty"` // Pointer and omitempty tag Extras []interface{} `json:"extras"` // Assuming Extras can contain any data Errors *ErrorDetails `json:"errors,omitempty"` // Pointer and omitempty for optional errors }
type RuleEngine ¶
type RuleEngine struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Phase string `json:"phase,omitempty"` Order int64 `json:"order,omitempty"` IsActive bool `json:"is_active,omitempty"` Criteria [][]sdk.RulesEngineCriteria `json:"criteria,omitempty"` Behaviors []sdk.RulesEngineBehaviorEntry `json:"behaviors,omitempty"` }
type RuleIdsStruct ¶
type SyncOpts ¶
type SyncOpts struct { RuleIds map[string]RuleIdsStruct CacheIds map[string]AzionJsonDataCacheSettings OriginIds map[string]AzionJsonDataOrigin Conf *AzionApplicationOptions }
Click to show internal directories.
Click to hide internal directories.