directory

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: 7 Imported by: 4

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

	// directory path
	Destination string `export:"destination"`

	// if true, directories will be created recursively
	CreateAll bool `export:"createall"`
}

Directory makes sure a directory is present on disk

func (*Directory) Apply

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

	// 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(ctx context.Context, 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