Documentation ¶
Overview ¶
Package akamai allows to initialize and set up Akamai Provider
Index ¶
- Constants
- Variables
- func NewFrameworkProvider(subproviders ...subprovider.Framework) func() provider.Provider
- func NewPluginProvider(subprovs ...subprovider.Plugin) 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 // Deprecated: terrform now uses registry paths, the shortest of which would be akamai/akamai" 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.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 ¶
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 fuctions 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 fuctions 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"` }
ProviderModel represents the model of Provider configuration