akamai

package
v6.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package akamai allows to initialize and set up Akamai Provider

Index

Constants

View Source
const (
	// ProviderRegistryPath is the path for the provider in the terraform registry
	ProviderRegistryPath = "registry.terraform.io/akamai/akamai"

	// ProviderName is the legacy name of the provider
	// Deprecated: terrform now uses registry paths, the shortest of which would be akamai/akamai"
	ProviderName = "terraform-provider-akamai"
)

Variables

View Source
var DefaultConfigFilePath = edgegrid.DefaultConfigFile

DefaultConfigFilePath is the default path for edgerc config file

View Source
var ErrWrongEdgeGridConfiguration = errors.New("error reading Akamai EdgeGrid configuration")

ErrWrongEdgeGridConfiguration is returned when the configuration could not be read

Functions

func NewFrameworkProvider

func NewFrameworkProvider(subproviders ...subprovider.Subprovider) func() provider.Provider

NewFrameworkProvider returns a function returning Provider as provider.Provider

func NewProtoV6SDKProvider

func NewProtoV6SDKProvider(subproviders []subprovider.Subprovider) (func() tfprotov6.ProviderServer, error)

NewProtoV6SDKProvider upgrades SDK provider from protocol version 5 to 6

func NewSDKProvider

func NewSDKProvider(subprovs ...subprovider.Subprovider) plugin.ProviderFunc

NewSDKProvider returns the provider function to terraform

Types

type ConfigModel

type ConfigModel struct {
	Host         types.String `tfsdk:"host"`
	AccessToken  types.String `tfsdk:"access_token"`
	ClientToken  types.String `tfsdk:"client_token"`
	ClientSecret types.String `tfsdk:"client_secret"`
	MaxBody      types.Int64  `tfsdk:"max_body"`
	AccountKey   types.String `tfsdk:"account_key"`
}

ConfigModel represents the model of edgegrid configuration block

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider is the implementation of akamai terraform provider which uses terraform-plugin-framework

func (*Provider) Configure

Configure configures provider context at the beginning of the lifecycle based on the values user specified in the provider configuration block

func (*Provider) DataSources

func (p *Provider) DataSources(_ context.Context) []func() datasource.DataSource

DataSources returns slice of functions used to instantiate data source implementations

func (*Provider) Metadata

Metadata configures provider's metadata

func (*Provider) Resources

func (p *Provider) Resources(_ context.Context) []func() resource.Resource

Resources returns slice of functions used to instantiate resource implementations

func (*Provider) Schema

Schema sets provider's configuration schema

type ProviderModel

type ProviderModel struct {
	EdgercPath    types.String `tfsdk:"edgerc"`
	EdgercSection types.String `tfsdk:"config_section"`
	EdgercConfig  types.Set    `tfsdk:"config"`
	CacheEnabled  types.Bool   `tfsdk:"cache_enabled"`
	RequestLimit  types.Int64  `tfsdk:"request_limit"`
	RetryMax      types.Int64  `tfsdk:"retry_max"`
	RetryWaitMin  types.Int64  `tfsdk:"retry_wait_min"`
	RetryWaitMax  types.Int64  `tfsdk:"retry_wait_max"`
	RetryDisabled types.Bool   `tfsdk:"retry_disabled"`
}

ProviderModel represents the model of Provider configuration

Jump to

Keyboard shortcuts

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