generate

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDockerfileContent

func GenerateDockerfileContent(data *DockerfileContent) string

GenerateDockerfileContent generates a Dockerfile from the DockerfileContent struct.

Types

type DockerfileContent

type DockerfileContent struct {
	Dockerfile []DockerfileStage `yaml:"dockerfile"`
}

DockerfileContent holds the entirety of the Dockerfile data structure.

type DockerfileStage

type DockerfileStage struct {
	Stage        int                      `yaml:"stage"`
	Instructions []map[string]interface{} `yaml:"instructions"`
}

DockerfileStage represents each stage in a Dockerfile with its associated instructions.

Jump to

Keyboard shortcuts

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