converge: Index | Files

package content

import ""


Package Files

content.go preparer.go

type Content Uses

type Content struct {
    // configured content of the file
    Content string `export:"content"`

    // configured destination of the file
    Destination string `export:"destination"`

Content renders content to disk

func (*Content) Apply Uses

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

Apply writes the content to disk

func (*Content) Check Uses

func (t *Content) Check(context.Context, resource.Renderer) (resource.TaskStatus, error)

Check if the content needs to be rendered

type Preparer Uses

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" required:"true" nonempty:"true"`

Preparer for Content

Content renders content to disk

func (*Preparer) Prepare Uses

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

Prepare a new task

Package content imports 6 packages (graph) and is imported by 6 packages. Updated 2016-12-25. Refresh now. Tools for package owners.