docker

package
v0.1.7-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 6 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) error

ExtractDockerFilesWithOptions extracts Docker files with custom options.

func GetDockerFile

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

GetDockerFile returns the contents of an embedded Docker file.

func GetDockerIgnoreDefault

func GetDockerIgnoreDefault() ([]byte, error)

GetDockerIgnoreDefault returns the default .dockerignore file content.

func GetEnvDefault

func GetEnvDefault() ([]byte, error)

GetEnvDefault returns the default .env file content.

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