multi

package
v0.0.0-...-f22496c Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TypeName = "go2chef.source.multi"

TypeName is the name of this source plugin

Variables

This section is empty.

Functions

func Loader

func Loader(config map[string]interface{}) (go2chef.Source, error)

Loader provides an instantiation function for this source

Types

type Source

type Source struct {
	SourceName string `mapstructure:"name"`

	SourceSpecs []map[string]interface{} `mapstructure:"sources"`
	// contains filtered or unexported fields
}

Source implements a multi filesystem source plugin that copies files from a directory on multi filesystem to temp for use. Paths are relative to the current working directory of the go2chef process.

func (*Source) DownloadToPath

func (s *Source) DownloadToPath(dlPath string) error

DownloadToPath fetches multiple source defs in order

func (*Source) Name

func (s *Source) Name() string

Name returns the name of this source instance

func (*Source) SetName

func (s *Source) SetName(name string)

SetName sets the name of this source instance

func (*Source) String

func (s *Source) String() string

func (*Source) Type

func (s *Source) Type() string

Type returns the type of this source

Jump to

Keyboard shortcuts

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