content

package
v0.0.0-...-02c76fb Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

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

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

Preparer for Content

Content renders content to disk

func (*Preparer) Prepare

func (p *Preparer) Prepare(ctx context.Context, 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