Documentation ¶
Overview ¶
Package cloudlets contains implementation for Akamai Terraform sub-provider responsible for managing Cloudlets applications
Index ¶
- Variables
- func Client(meta meta.Meta) cloudlets.Cloudlets
- func ClientV3(meta meta.Meta) v3.Cloudlets
- func EnforceMatchRulesChange(_ context.Context, diff *schema.ResourceDiff, _ interface{}) error
- func EnforcePolicyVersionChange(_ context.Context, diff *schema.ResourceDiff, _ interface{}) error
- func EnforceVersionChange(_ context.Context, diff *schema.ResourceDiff, _ interface{}) error
- func NewPolicyActivationDataSource() datasource.DataSource
- func NewSharedPolicyDataSource() datasource.DataSource
- type FrameworkSubprovider
- type PluginSubprovider
Constants ¶
This section is empty.
Variables ¶
var ( // ErrPolicyActivation is returned when policy activation fails ErrPolicyActivation = errors.New("policy activation") // ErrPolicyActivationTimeout is returned when policy activation fails due to a timeout ErrPolicyActivationTimeout = errors.New("policy activation timeout") // ErrPolicyActivationCanceled is returned on activation poll cancel ErrPolicyActivationCanceled = errors.New("operation canceled while waiting for policy activation status") // ErrPolicyActivationContextTerminated is returned on activation context termination ErrPolicyActivationContextTerminated = errors.New("policy activation context terminated") // ErrApplicationLoadBalancerActivation is returned when application load balancer activation fails ErrApplicationLoadBalancerActivation = errors.New("application load balancer activation") // ErrApplicationLoadBalancerActivationTimeout is returned when application load balancer activation fails due to a timeout ErrApplicationLoadBalancerActivationTimeout = errors.New("application load balancer activation timeout") // ErrApplicationLoadBalancerActivationOriginNotDefined is returned when load balancer activation fails due to origin not defined ErrApplicationLoadBalancerActivationOriginNotDefined = errors.New("not defined in property manager for this network") // ErrApplicationLoadBalancerActivationCanceled is returned on activation poll cancel ErrApplicationLoadBalancerActivationCanceled = errors.New("operation canceled while waiting for application load balancer activation status") // ErrApplicationLoadBalancerActivationContextTerminated is returned on activation context termination ErrApplicationLoadBalancerActivationContextTerminated = errors.New("application load balancer activation context terminated") )
var ( // ALBActivationPollMinimum is the minimum polling interval for activation creation ALBActivationPollMinimum = time.Second * 15 // ALBActivationPollInterval is the interval for polling an activation status on creation ALBActivationPollInterval = ALBActivationPollMinimum // ApplicationLoadBalancerActivationResourceTimeout is the default timeout for the resource operations ApplicationLoadBalancerActivationResourceTimeout = time.Minute * 20 // ApplicationLoadBalancerActivationRetryTimeout is the default timeout for the resource activation retries ApplicationLoadBalancerActivationRetryTimeout = time.Minute * 10 )
var ( // DeletionPolicyPollInterval is the default poll interval for delete policy retries DeletionPolicyPollInterval = time.Second * 10 // DeletionPolicyTimeout is the default timeout for the policy deletion DeletionPolicyTimeout = time.Minute * 90 )
var ( // ActivationPollMinimum is the minimum polling interval for activation creation ActivationPollMinimum = time.Minute // ActivationPollInterval is the interval for polling an activation status on creation ActivationPollInterval = ActivationPollMinimum // MaxListActivationsPollRetries is the maximum number of retries for calling ListActivations request in case of returning empty list MaxListActivationsPollRetries = 5 // PolicyActivationResourceTimeout is the default timeout for the resource operations PolicyActivationResourceTimeout = time.Minute * 90 // PolicyActivationRetryPollMinimum is the minimum polling interval for retrying policy activation PolicyActivationRetryPollMinimum = time.Second * 15 // PolicyActivationRetryTimeout is the default timeout for the policy activation retries PolicyActivationRetryTimeout = time.Minute * 10 // ErrNetworkName is used when the user inputs an invalid network name ErrNetworkName = errors.New("invalid network name") )
Functions ¶
func EnforceMatchRulesChange ¶
func EnforceMatchRulesChange(_ context.Context, diff *schema.ResourceDiff, _ interface{}) error
EnforceMatchRulesChange enforces that any changes to match_rules will re compute the warnings
func EnforcePolicyVersionChange ¶
func EnforcePolicyVersionChange(_ context.Context, diff *schema.ResourceDiff, _ interface{}) error
EnforcePolicyVersionChange enforces that change to any field will most likely result in creating a new version
func EnforceVersionChange ¶
func EnforceVersionChange(_ context.Context, diff *schema.ResourceDiff, _ interface{}) error
EnforceVersionChange enforces that change to any field will most likely result in creating a new version
func NewPolicyActivationDataSource ¶ added in v5.6.0
func NewPolicyActivationDataSource() datasource.DataSource
NewPolicyActivationDataSource returns a new capacity data source
func NewSharedPolicyDataSource ¶ added in v5.6.0
func NewSharedPolicyDataSource() datasource.DataSource
NewSharedPolicyDataSource returns a new cloudlets shared policy data source
Types ¶
type FrameworkSubprovider ¶ added in v5.6.0
type FrameworkSubprovider struct{}
FrameworkSubprovider gathers property resources and data sources written using terraform-plugin-framework
func NewFrameworkSubprovider ¶ added in v5.6.0
func NewFrameworkSubprovider() *FrameworkSubprovider
NewFrameworkSubprovider returns a core Framework based sub provider
func (*FrameworkSubprovider) DataSources ¶ added in v5.6.0
func (p *FrameworkSubprovider) DataSources() []func() datasource.DataSource
DataSources returns terraform data sources for cloudlets
func (*FrameworkSubprovider) Resources ¶ added in v5.6.0
func (p *FrameworkSubprovider) Resources() []func() resource.Resource
Resources returns terraform resources for cloudlets
type PluginSubprovider ¶ added in v5.6.0
type PluginSubprovider struct{}
PluginSubprovider gathers property resources and data sources written using terraform-plugin-sdk
func NewPluginSubprovider ¶ added in v5.6.0
func NewPluginSubprovider() *PluginSubprovider
NewPluginSubprovider returns a core SDKv2 based sub provider
func (*PluginSubprovider) DataSources ¶ added in v5.6.0
func (p *PluginSubprovider) DataSources() map[string]*schema.Resource
DataSources returns terraform data sources for cloudlets
Source Files ¶
- cloudlets.go
- cloudlets_errors.go
- data_akamai_cloudlets_api_prioritization_match_rule.go
- data_akamai_cloudlets_application_load_balancer.go
- data_akamai_cloudlets_application_load_balancer_match_rule.go
- data_akamai_cloudlets_audience_segmentation_match_rule.go
- data_akamai_cloudlets_edge_redirector_match_rule.go
- data_akamai_cloudlets_forward_rewrite_match_rule.go
- data_akamai_cloudlets_phased_release_match_rule.go
- data_akamai_cloudlets_policy.go
- data_akamai_cloudlets_policy_activation.go
- data_akamai_cloudlets_request_control_match_rule.go
- data_akamai_cloudlets_shared_policy.go
- data_akamai_cloudlets_visitor_prioritization_match_rule.go
- match_rules.go
- policy_version.go
- policy_version_v2.go
- policy_version_v3.go
- provider.go
- resource_akamai_cloudlets_application_load_balancer.go
- resource_akamai_cloudlets_application_load_balancer_activation.go
- resource_akamai_cloudlets_application_load_balancer_activation_schema_v0.go
- resource_akamai_cloudlets_policy.go
- resource_akamai_cloudlets_policy_activation.go
- resource_akamai_cloudlets_policy_activation_schema_v0.go
- resource_akamai_cloudlets_policy_activation_v2.go
- resource_akamai_cloudlets_policy_activation_v3.go
- resource_akamai_cloudlets_policy_v2.go
- resource_akamai_cloudlets_policy_v3.go