edgeworkers

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MPL-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package edgeworkers contains implementation for Akamai Terraform sub-provider responsible for maintaining EdgeWorkers functions to dynamically manage web traffic

Index

Constants

View Source
const ProviderVersion string = "v0.0.1"

ProviderVersion update version string anytime provider adds new features

Variables

View Source
var (
	// ErrEdgeworkerActivation is returned when edgeworker activation fails
	ErrEdgeworkerActivation = errors.New("edgeworker activation")
	// ErrEdgeworkerDeactivation is returned when edgeworker deactivation fails
	ErrEdgeworkerDeactivation = errors.New("edgeworker deactivation")
	// ErrEdgeworkerActivationFailure is returned when edgeworker activation fails due to a timeout
	ErrEdgeworkerActivationFailure = errors.New("edgeworker activation failure")
	// ErrEdgeworkerDeactivationFailure is returned when edgeworker deactivation fails due to a timeout
	ErrEdgeworkerDeactivationFailure = errors.New("edgeworker deactivation failure")
	// ErrEdgeworkerActivationTimeout is returned when edgeworker activation fails due to a timeout
	ErrEdgeworkerActivationTimeout = errors.New("edgeworker activation timeout")
	// ErrEdgeworkerDeactivationTimeout is returned when edgeworker deactivation fails due to a timeout
	ErrEdgeworkerDeactivationTimeout = errors.New("edgeworker deactivation timeout")
	// ErrEdgeworkerActivationCancelled is returned on activation poll cancel
	ErrEdgeworkerActivationCancelled = errors.New("operation cancelled while waiting for edgeworker activation status")
	// ErrEdgeworkerDeactivationCancelled is returned on deactivation poll cancel
	ErrEdgeworkerDeactivationCancelled = errors.New("operation cancelled while waiting for edgeworker deactivation status")
	// ErrEdgeworkerActivationContextTerminated is returned on activation context termination
	ErrEdgeworkerActivationContextTerminated = errors.New("edgeworker activation context terminated")
	// ErrEdgeworkerDeactivationContextTerminated is returned on deactivation context termination
	ErrEdgeworkerDeactivationContextTerminated = errors.New("edgeworker deactivation context terminated")
)

Functions

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 edgeworkers provider option

func WithClient

func WithClient(c edgeworkers.Edgeworkers) 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