Documentation ¶
Overview ¶
Package networklists contains implementation for Akamai Terraform sub-provider responsible for creation, deployment, and management of network lists
Index ¶
- Constants
- Variables
- func InitTemplates(otm map[string]*OutputTemplate)
- func RemoveIndex(hl []string, index int) []string
- func RenderTemplates(ots map[string]*OutputTemplate, key string, str interface{}) (string, error)
- type OutputTemplate
- type OutputTemplates
- type Subprovider
- func (p *Subprovider) Client(meta meta.Meta) networklists.NetworkList
- func (p *Subprovider) FrameworkDataSources() []func() datasource.DataSource
- func (p *Subprovider) FrameworkResources() []func() resource.Resource
- func (p *Subprovider) SDKDataSources() map[string]*schema.Resource
- func (p *Subprovider) SDKResources() map[string]*schema.Resource
Constants ¶
const ( Append = "APPEND" Replace = "REPLACE" Remove = "REMOVE" IP = "IP" Geo = "GEO" )
Append Replace Remove mode flags
const ( // ActivationPollMinimum is the minimum polling interval for activation creation ActivationPollMinimum = time.Minute )
Variables ¶
var ( // ActivationPollInterval is the interval for polling an activation status on creation ActivationPollInterval = ActivationPollMinimum // CreateActivationRetry poll wait time code waits between retries for activation creation CreateActivationRetry = 10 * time.Second )
Functions ¶
func InitTemplates ¶
func InitTemplates(otm map[string]*OutputTemplate)
InitTemplates populates map of templates given as argument with output templates
func RemoveIndex ¶
RemoveIndex removes an element from the slice and returns it
func RenderTemplates ¶
func RenderTemplates(ots map[string]*OutputTemplate, key string, str interface{}) (string, error)
RenderTemplates renders template and returns it as a string
Types ¶
type OutputTemplate ¶
type OutputTemplate struct { TemplateName string TemplateType string TableTitle string TemplateString string }
OutputTemplate contains template data
func GetTemplate ¶
func GetTemplate(ots map[string]*OutputTemplate, key string) (*OutputTemplate, error)
GetTemplate given map of templates and a key, returns template stored under this key
type OutputTemplates ¶
type OutputTemplates map[string]*OutputTemplate
OutputTemplates is a map of templates
type Subprovider ¶
type Subprovider struct {
// contains filtered or unexported fields
}
Subprovider gathers networklists resources and data sources
func NewSubprovider ¶
func NewSubprovider(opts ...option) *Subprovider
NewSubprovider returns new networklists subprovider
func (*Subprovider) Client ¶
func (p *Subprovider) Client(meta meta.Meta) networklists.NetworkList
Client returns the NetworkList interface
func (*Subprovider) FrameworkDataSources ¶
func (p *Subprovider) FrameworkDataSources() []func() datasource.DataSource
FrameworkDataSources returns the networklists data sources implemented using terraform-plugin-framework
func (*Subprovider) FrameworkResources ¶
func (p *Subprovider) FrameworkResources() []func() resource.Resource
FrameworkResources returns the networklists resources implemented using terraform-plugin-framework
func (*Subprovider) SDKDataSources ¶
func (p *Subprovider) SDKDataSources() map[string]*schema.Resource
SDKDataSources returns the networklists data sources implemented using terraform-plugin-sdk
func (*Subprovider) SDKResources ¶
func (p *Subprovider) SDKResources() map[string]*schema.Resource
SDKResources returns the networklists resources implemented using terraform-plugin-sdk