content

package
v0.0.0-...-215933a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Content     string
	Destination string
	*resource.Status
}

Content renders content to disk

func (*Content) Apply

func (t *Content) Apply() (resource.TaskStatus, error)

Apply writes the content to disk

func (*Content) Check

Check if the content needs to be rendered

type Preparer

type Preparer struct {
	// Content is the file content. This will be rendered as a template.
	Content string `hcl:"content"`

	// Destination is the location on disk where the content will be rendered.
	Destination string `hcl:"destination"`
}

Preparer for Content

Content renders content to disk

func (*Preparer) Prepare

func (p *Preparer) Prepare(render resource.Renderer) (resource.Task, error)

Prepare a new task

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL