resources

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResources

func GetResources(source string, destination string, opencontrol common.OpenControl, getter Getter) error

GetResources will download all the resources that are specified by the schema first by copying the local resources then downloading the remote ones and letting their respective schema version handle how to get their resources.

Types

type Downloader

type Downloader interface {
	DownloadRepo(common.RemoteSource, string) error
}

Downloader is a generic interface for how to download entries.

func NewVCSDownloader

func NewVCSDownloader() Downloader

NewVCSDownloader is a constructor for downloading entries using VCS methods.

type Getter

type Getter interface {
	GetLocalResources(source string, resources []string, destination string, subfolder string, recursively bool,
		resourceType constants.ResourceType) error
	GetRemoteResources(destination string, subfolder string, entries []common.RemoteSource) error
}

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

func NewVCSAndLocalGetter

func NewVCSAndLocalGetter(parser opencontrol.SchemaParser) Getter

NewVCSAndLocalGetter constructs a new resource getter with the type of parser to use for the files.

Directories

Path Synopsis
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

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