cloudlets

package
v5.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MPL-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package cloudlets contains implementation for Akamai Terraform sub-provider responsible for managing Cloudlets applications

Index

Constants

This section is empty.

Variables

View Source
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")
)
View Source
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
)
View Source
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
)
View Source
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 Client added in v5.6.0

func Client(meta meta.Meta) cloudlets.Cloudlets

Client returns the cloudlets interface

func ClientV3 added in v5.6.0

func ClientV3(meta meta.Meta) v3.Cloudlets

ClientV3 returns the cloudlets v3 interface

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

func (*PluginSubprovider) Resources added in v5.6.0

func (p *PluginSubprovider) Resources() map[string]*schema.Resource

Resources returns terraform resources for cloudlets

Jump to

Keyboard shortcuts

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