cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root cobra command

Types

type Base

type Base struct {
	// Base image(s) to use
	Name string `yaml:"name"`
	// Base image version(s) to use
	Version string `yaml:"version"`
}

Base represents the base image used by Packer for image building.

type Blueprint

type Blueprint struct {
	// Name of the Blueprint
	Name string `yaml:"name"`
	// Path to the provisioning repo
	ProvisioningRepo string
}

Blueprint represents the contents of a Blueprint.

type Container

type Container struct {
	Workdir    string `yaml:"container.workdir"`
	User       string `yaml:"container.user"`
	Entrypoint string `yaml:"container.entrypoint"`
	Registry   Registry
}

Container stores information that is used for the container build process.

type Data

type Data struct {
	Blueprint       Blueprint
	PackerTemplates []PackerTemplate
	Container       Container
}

Data holds a blueprint and its associated packer templates.

type PackerTemplate

type PackerTemplate struct {
	// Name of the Packer template
	Name      string    `yaml:"name"`
	Container Container `yaml:"container"`
	Base      Base      `yaml:"base"`
	Tag       Tag       `yaml:"tag"`
	// Systemd dictates creation of a container with systemd.
	Systemd bool `yaml:"systemd"`
}

PackerTemplate is used to hold the information used with a blueprint's packer templates.

type Registry

type Registry struct {
	// Registry server to connect to.
	Server string `yaml:"registry.server"`
	// Username to authenticate to the registry server.
	Username string `yaml:"registry.username"`
	// Credential to authenticate to the registry server.
	Credential string
}

Registry stores container registry information that is used after image building to commit the image.

type Tag

type Tag struct {
	// Name of the new image
	Name string `yaml:"name"`
	// Version of the new image
	Version string `yaml:"version"`
}

Tag represents the new tag for the image built by Packer.

Jump to

Keyboard shortcuts

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