Documentation
¶
Overview ¶
Package akamai allows to initialize and set up Akamai Provider.
Index ¶
- Constants
- Variables
- func NewFrameworkProvider(subproviders ...subprovider.Subprovider) func() provider.Provider
- func NewProtoV6SDKProvider(subproviders []subprovider.Subprovider) (func() tfprotov6.ProviderServer, error)
- func NewSDKProvider(subprovs ...subprovider.Subprovider) plugin.ProviderFunc
- type ConfigModel
- type Provider
- func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *Provider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *Provider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *Provider) Resources(_ context.Context) []func() resource.Resource
- func (p *Provider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type ProviderModel
Constants ¶
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. ProviderName = "terraform-provider-akamai" )
Variables ¶
var DefaultConfigFilePath = edgegrid.DefaultConfigFile
DefaultConfigFilePath is the default path for edgerc config file
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 ¶
func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
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 ¶
func (p *Provider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
Metadata configures provider's metadata
func (*Provider) Resources ¶
Resources returns slice of functions used to instantiate resource implementations
func (*Provider) Schema ¶
func (p *Provider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
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