Documentation ¶
Overview ¶
Package networklists contains implementation for Akamai Terraform sub-provider responsible for creation, deployment, and management of network lists
Index ¶
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 a core sub provider
func (*Subprovider) Client ¶
func (p *Subprovider) Client(meta meta.Meta) networklists.NTWRKLISTS
Client returns the PAPI interface
func (*Subprovider) DataSources ¶
func (p *Subprovider) DataSources() map[string]*schema.Resource
DataSources returns terraform data sources for networklists