docker

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package docker contains embedded Docker files and extraction utilities.

Index

Constants

View Source
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

func GetDockerFile(name string) ([]byte, error)

GetDockerFile returns the contents of an embedded Docker file.

func ListEmbeddedFiles

func ListEmbeddedFiles() ([]string, error)

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

type ExtractOptions struct {
	OverwriteBaseFiles bool
	Contexts           []string
}

ExtractOptions specifies options for extracting Docker files.

Jump to

Keyboard shortcuts

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