Documentation ¶
Index ¶
- Constants
- func DestroyImageForFileBasedProvider(imageID string) error
- func GetImagesForFileBasedProvider(providerType string, e types.Environment) ([]types.Image, error)
- func New() types.Provider
- func NewProfile(name string, providerInstance types.Provider, config common.ProfileConfig) types.Profile
- func NewWithName(name string) types.Provider
- type Environment
- func (e *Environment) CreateVM(options types.MachineLaunchOptions) error
- func (e *Environment) DestroyImage(imageID string) error
- func (e *Environment) DestroyVM(id string) error
- func (e *Environment) ImageBuilds() ([]types.ImageBuild, error)
- func (e *Environment) Images() ([]types.Image, error)
- func (e *Environment) Name() string
- func (e *Environment) Profile() types.Profile
- func (e *Environment) RestartVM(id string) error
- func (e *Environment) StartVM(id string) error
- func (e *Environment) StopVM(id string) error
- func (e *Environment) VMs() []types.VM
- type ImageBuildDate
- type Profile
- func (p *Profile) Environments() []types.Environment
- func (p *Profile) GetConfig() common.ProfileConfig
- func (p *Profile) Name() string
- func (p *Profile) Provider() types.Provider
- func (p *Profile) SetConfig(config common.ProfileConfig)
- func (p *Profile) ShouldIncludeEnvironment(envName string) bool
- type Provider
- func (p *Provider) GetConfig() common.ProviderConfig
- func (p *Provider) IsAvailable() bool
- func (p *Provider) Name() string
- func (p *Provider) NewImageBuild(name, tplDir string) (types.ImageBuild, error)
- func (p *Provider) NewProject(name string, force bool) (types.Project, error)
- func (p *Provider) Profiles() []types.Profile
- func (p *Provider) SetConfig(config common.ProviderConfig)
- func (p *Provider) Type() string
Constants ¶
View Source
const CloudInitDir = "cloud-init"
View Source
const ISOVarUsage = "var.iso_url"
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 DestroyImageForFileBasedProvider ¶ added in v0.4.0
func GetImagesForFileBasedProvider ¶ added in v0.4.0
func NewProfile ¶
func NewWithName ¶
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func (*Environment) CreateVM ¶
func (e *Environment) CreateVM(options types.MachineLaunchOptions) error
func (*Environment) DestroyImage ¶ added in v0.4.0
func (e *Environment) DestroyImage(imageID string) error
func (*Environment) DestroyVM ¶
func (e *Environment) DestroyVM(id string) error
func (*Environment) ImageBuilds ¶
func (e *Environment) ImageBuilds() ([]types.ImageBuild, error)
func (*Environment) Name ¶
func (e *Environment) Name() string
func (*Environment) Profile ¶
func (e *Environment) Profile() types.Profile
func (*Environment) RestartVM ¶
func (e *Environment) RestartVM(id string) error
func (*Environment) StartVM ¶
func (e *Environment) StartVM(id string) error
func (*Environment) StopVM ¶
func (e *Environment) StopVM(id string) error
func (*Environment) VMs ¶
func (e *Environment) VMs() []types.VM
type ImageBuildDate ¶ added in v0.5.0
type ImageBuildDate struct {
Name string
}
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
func (*Profile) Environments ¶
func (p *Profile) Environments() []types.Environment
func (*Profile) GetConfig ¶
func (p *Profile) GetConfig() common.ProfileConfig
func (*Profile) SetConfig ¶
func (p *Profile) SetConfig(config common.ProfileConfig)
func (*Profile) ShouldIncludeEnvironment ¶ added in v0.3.1
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) GetConfig ¶
func (p *Provider) GetConfig() common.ProviderConfig
func (*Provider) IsAvailable ¶
func (*Provider) NewImageBuild ¶ added in v0.5.0
func (p *Provider) NewImageBuild(name, tplDir string) (types.ImageBuild, error)
func (*Provider) NewProject ¶ added in v0.5.0
func (*Provider) SetConfig ¶
func (p *Provider) SetConfig(config common.ProviderConfig)
Click to show internal directories.
Click to hide internal directories.