Documentation
¶
Overview ¶
Package docker contains embedded Docker files and extraction utilities.
Index ¶
Constants ¶
const EmbedDir = "embed"
EmbedDir is the directory containing embedded Docker configuration files.
Variables ¶
This section is empty.
Functions ¶
func ExtractDockerFilesWithOptions ¶
func ExtractDockerFilesWithOptions(targetDir string, opts ExtractOptions) (written []string, err error)
ExtractDockerFilesWithOptions extracts Docker files with custom options. It returns the paths of any ".default" files written alongside existing, user-modified files so callers can notify the user.
func GetDockerFile ¶
GetDockerFile returns the contents of an embedded Docker file.
func ListEmbeddedFiles ¶
ListEmbeddedFiles returns the repository-relative paths that extraction writes into a XenForo directory, in no particular order.
The list is derived from the embedded tree rather than hardcoded, so it cannot drift as files are added to or removed from it. ".default" files are reported under the name they are written as, matching extractDefaultFile.
Types ¶
type ExtractOptions ¶
ExtractOptions specifies options for extracting Docker files.