resources

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2016 License: CC0-1.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 ResourceGetter

type ResourceGetter interface {
	GetLocalResources(source string, resources []string, destination string, subfolder string, recursively bool, worker *common.ConfigWorker, resourceType constants.ResourceType) error
	GetRemoteResources(destination string, subfolder string, worker *common.ConfigWorker, entries []common.Entry) error
}

ResourceGetter is an interface for how to get and place local and remote resources.

type VCSAndLocalFSGetter

type VCSAndLocalFSGetter struct{}

VCSAndLocalFSGetter is the resource getter that uses VCS for remote resource getting and local file system for local resources.

func (VCSAndLocalFSGetter) GetLocalResources

func (g VCSAndLocalFSGetter) GetLocalResources(source string, resources []string, destination string, subfolder string, recursively bool, worker *common.ConfigWorker, resourceType constants.ResourceType) error

GetLocalResources is the implementation that uses the local file system to get local resources.

func (VCSAndLocalFSGetter) GetRemoteResources

func (g VCSAndLocalFSGetter) GetRemoteResources(destination string, subfolder string, worker *common.ConfigWorker, entries []common.Entry) error

GetRemoteResources is the implementation that uses VCS to get remote resources.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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