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.
Click to show internal directories.
Click to hide internal directories.