cloudlets

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const ProviderVersion string = "v0.0.1"

ProviderVersion update version string anytime provider adds new features

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 (
	// 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

	// 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 Provider

func Provider() *schema.Provider

Provider returns the Akamai terraform.Resource provider.

func Subprovider

func Subprovider(opts ...Option) akamai.Subprovider

Subprovider returns a core sub provider

Types

type Option

type Option func(p *provider)

Option is a cloudlets provider option

func WithClient

func WithClient(c cloudlets.Cloudlets) Option

WithClient sets the client interface function, used for mocking and testing

Jump to

Keyboard shortcuts

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