Documentation ¶
Index ¶
- func DownloadGitSource(downloadPath string, source Source, moduleName string) error
- func DownloadSource(downloadPath string, source Source, moduleName string) error
- func DownloadTarSource(downloadPath string, source Source, moduleName string) error
- func MoveSource(downloadPath string, sourcesPath string, source Source, moduleName string) error
- func MoveSources(downloadPath string, sourcesPath string, sources []Source, moduleName string) error
- type Recipe
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadGitSource ¶
DownloadGitSource downloads a git source to the downloads directory and checks out the commit or tag
func DownloadSource ¶
DownloadSource downloads a source to the downloads directory according to its type (git, tar, ...)
func DownloadTarSource ¶
DownloadTarSource downloads a tar archive to the downloads directory
func MoveSource ¶
MoveSource moves a source from the downloads directory to the sources directory, by extracting if a tar archive or moving if a git repository
Types ¶
type Recipe ¶
type Recipe struct { Base string `json:"base"` Name string Id string SingleLayer bool `json:"singlelayer"` Labels map[string]string `json:"labels"` Adds map[string]string `json:"adds"` Args map[string]string `json:"args"` Runs []string `json:"runs"` Expose int `json:"expose"` Cmd string `json:"cmd"` Modules []interface{} `json:"modules"` Path string ParentPath string DownloadsPath string SourcesPath string PluginPath string Containerfile string Entrypoint []string }
Click to show internal directories.
Click to hide internal directories.