Documentation ¶
Index ¶
- Constants
- type Template
- type TemplateProvider
- func (p *TemplateProvider) Changed() (bool, error)
- func (p *TemplateProvider) Create() error
- func (p *TemplateProvider) Destroy() error
- func (p *TemplateProvider) Init(cfg htypes.Resource, l sdk.Logger) error
- func (p *TemplateProvider) Lookup() ([]string, error)
- func (p *TemplateProvider) Refresh() error
Constants ¶
View Source
const TypeTemplate string = "template"
TypeTemplate is the resource string for a Template resource
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct { types.ResourceMetadata `hcl:",remain"` Source string `hcl:"source" json:"source"` // Source template to be processed as string Destination string `hcl:"destination" json:"destination"` // Destination filename to write Variables map[string]cty.Value `hcl:"variables,optional" json:"variables,omitempty"` // Variables to be processed in the template }
Template allows the process of user defined templates
type TemplateProvider ¶
type TemplateProvider struct {
// contains filtered or unexported fields
}
Template provider allows parsing and output of file based templates
func (*TemplateProvider) Changed ¶
func (p *TemplateProvider) Changed() (bool, error)
func (*TemplateProvider) Destroy ¶
func (p *TemplateProvider) Destroy() error
func (*TemplateProvider) Lookup ¶
func (p *TemplateProvider) Lookup() ([]string, error)
Lookup satisfies the interface method but is not implemented by Template
func (*TemplateProvider) Refresh ¶
func (p *TemplateProvider) Refresh() error
Refresh causes the template to be destroyed and recreated
Click to show internal directories.
Click to hide internal directories.