carbon

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const CloudInitDir = "cloud-init"
View Source
const ISOVarUsage = "var.iso_url"
View Source
const PackerDir = "deployments/packer"
View Source
const PackerFileIsoVars = "iso-variables.pkr.hcl"
View Source
const PackerFileLocalVars = "local-variables.pkr.hcl"
View Source
const PackerFilePacker = "packer.pkr.hcl"
View Source
const PackerFilePrivateVarsExample = "private.auto.pkrvars.hcl.example"
View Source
const PackerFileSuffixAnsible = "-ansible.pkr.hcl"
View Source
const PackerFileSuffixCloudInit = "-cloud-init.pkr.hcl"
View Source
const PackerFileSuffixVariables = "-variables.pkr.hcl"

Variables

This section is empty.

Functions

func AvailableProviders

func AvailableProviders() []types.Provider

Types

type Carbon

type Carbon struct {
	// contains filtered or unexported fields
}

func New

func New(config common.CarbonConfig) *Carbon

func (*Carbon) BuildImage added in v0.2.0

func (c *Carbon) BuildImage(name, provider, provisioner string) error

func (*Carbon) CreateImageBuild added in v0.2.0

func (c *Carbon) CreateImageBuild(name, tplDir, service string) error

func (*Carbon) FindVMByID

func (c *Carbon) FindVMByID(id string) []types.VM

func (*Carbon) FindVMByName added in v0.2.0

func (c *Carbon) FindVMByName(name string) []types.VM

func (*Carbon) GetImage added in v0.4.0

func (c *Carbon) GetImage(imageID string) (types.Image, error)

func (*Carbon) GetImageBuilds added in v0.2.0

func (c *Carbon) GetImageBuilds() ([]types.ImageBuild, error)

func (*Carbon) GetImages added in v0.3.0

func (c *Carbon) GetImages() ([]types.Image, error)

func (*Carbon) GetProject added in v0.4.0

func (c *Carbon) GetProject(name string) (types.Project, error)

func (*Carbon) GetProjects added in v0.4.0

func (c *Carbon) GetProjects() ([]types.Project, error)

func (*Carbon) GetVMs

func (c *Carbon) GetVMs() []types.VM

func (*Carbon) LaunchImage added in v0.4.0

func (c *Carbon) LaunchImage(name, imageID string) error

func (*Carbon) Profiles added in v0.3.0

func (c *Carbon) Profiles() []types.Profile

func (*Carbon) Providers

func (c *Carbon) Providers() []types.Provider

func (*Carbon) VMsFromHosts added in v0.2.4

func (c *Carbon) VMsFromHosts(hostnames []string) []types.VM

type Options

type Options struct {
	Providers    []string
	Profiles     []string
	Environments []string
}

Jump to

Keyboard shortcuts

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