cloudlets

package
v6.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MPL-2.0 Imports: 39 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

func Client(meta meta.Meta) cloudlets.Cloudlets

Client returns the cloudlets interface

func ClientV3

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

func NewPolicyActivationDataSource() datasource.DataSource

NewPolicyActivationDataSource returns a new capacity data source

func NewSharedPolicyDataSource

func NewSharedPolicyDataSource() datasource.DataSource

NewSharedPolicyDataSource returns a new cloudlets shared policy data source

Types

type Subprovider

type Subprovider struct{}

Subprovider gathers cloudlets resources and data sources

func NewSubprovider

func NewSubprovider() *Subprovider

NewSubprovider returns a new cloudlets subprovider

func (*Subprovider) FrameworkDataSources

func (p *Subprovider) FrameworkDataSources() []func() datasource.DataSource

FrameworkDataSources returns the cloudlets data sources implemented using terraform-plugin-framework

func (*Subprovider) FrameworkResources

func (p *Subprovider) FrameworkResources() []func() resource.Resource

FrameworkResources returns the cloudlets resources implemented using terraform-plugin-framework

func (*Subprovider) SDKDataSources

func (p *Subprovider) SDKDataSources() map[string]*schema.Resource

SDKDataSources returns the cloudlets data sources implemented using terraform-plugin-sdk

func (*Subprovider) SDKResources

func (p *Subprovider) SDKResources() map[string]*schema.Resource

SDKResources returns the cloudlets resources implemented using terraform-plugin-sdk

Jump to

Keyboard shortcuts

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