copy

package
v0.5.45 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TypeCopy string = "copy"

TypeCopy copies files from one location to another

Variables

This section is empty.

Functions

This section is empty.

Types

type Copy

type Copy struct {
	// embedded type holding name, etc
	types.ResourceMetadata `hcl:",remain"`

	Depends []string `hcl:"depends_on,optional" json:"depends,omitempty"`

	Source      string `hcl:"source" json:"source"`                              // Source file, folder or glob
	Destination string `hcl:"destination" json:"destination"`                    // Destination to write file or files to
	Permissions string `hcl:"permissions,optional" json:"permissions,omitempty"` // Permissions 0777 to set for written file

	// outputs
	CopiedFiles []string `hcl:"copied_files,optional" json:"copied_files"`
}

Docs allows the running of a Docusaurus container which can be used for online tutorials or documentation

func (*Copy) Process

func (t *Copy) Process() error

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func (*Provider) Changed

func (p *Provider) Changed() (bool, error)

func (*Provider) Create

func (p *Provider) Create() error

func (*Provider) Destroy

func (p *Provider) Destroy() error

func (*Provider) Init

func (p *Provider) Init(cfg htypes.Resource, l logger.Logger) error

func (*Provider) Lookup

func (p *Provider) Lookup() ([]string, error)

func (*Provider) Refresh

func (p *Provider) Refresh() error

Jump to

Keyboard shortcuts

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