akamai

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: 27 Imported by: 1

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.Framework) func() provider.Provider

NewFrameworkProvider returns a function returning Provider as provider.Provider

func NewPluginProvider

func NewPluginProvider(subprovs ...subprovider.Plugin) plugin.ProviderFunc

NewPluginProvider returns the provider function to terraform

Types

type ConfigModel added in v5.0.1

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 fuctions 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 fuctions 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"`
}

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