directory

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Directory

type Directory struct {
	resource.TaskStatus

	Destination string
	CreateAll   bool
}

Directory makes sure a directory is present on disk

func (*Directory) Apply

func (d *Directory) Apply() (resource.TaskStatus, error)

Apply creates the directory

func (*Directory) Check

Check if the directory exists

type Preparer

type Preparer struct {
	// the location on disk to make the directory
	Destination string `hcl:"destination"`

	// whether or not to create all parent directories on the way up
	CreateAll bool `hcl:"create_all"`
}

Preparer for Directory

Directory makes sure a directory is present on disk

func (*Preparer) Prepare

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

Prepare the new directory

Jump to

Keyboard shortcuts

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