Documentation ¶
Index ¶
- func GetImageBuildsForProvider(provider string) ([]types.ImageBuild, error)
- func NewImage(imageID string, imageName string, createdAt time.Time, env types.Environment) types.Image
- type BuildBlock
- type Image
- func (i *Image) CreatedAt() string
- func (i *Image) Destroy() error
- func (i *Image) Environment() types.Environment
- func (i *Image) ID() string
- func (i *Image) Launch(imageLaunchOptions types.ImageLaunchOptions) error
- func (i *Image) MarshalJSON() ([]byte, error)
- func (i *Image) Name() string
- func (i *Image) Profile() types.Profile
- func (i *Image) Provider() types.Provider
- type ImageBuild
- type Machine
- func (m *Machine) Cmd(user string, privateIP bool, cmdArgs ...string) (string, error)
- func (m *Machine) Destroy() error
- func (m *Machine) Environment() types.Environment
- func (m *Machine) ExecSSH(user string, privateIP bool, cmdArgs ...string) error
- func (m *Machine) ID() string
- func (m *Machine) IPAddress() string
- func (m *Machine) Name() string
- func (m *Machine) NewSSHSession(user string, privateIP bool) (*ssh_util.Session, error)
- func (m *Machine) PrivateIPAddress() string
- func (m *Machine) Profile() types.Profile
- func (m *Machine) Provider() types.Provider
- func (m *Machine) Restart() error
- func (m *Machine) Start() error
- func (m *Machine) StartVNC(user string, privateIP bool, killVNC bool) error
- func (m *Machine) State() string
- func (m *Machine) Stop() error
- func (m *Machine) Type() string
- func (m *Machine) UpTime() time.Duration
- type PackerConfig
- type Project
- type SourceBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageBuildsForProvider ¶
func GetImageBuildsForProvider(provider string) ([]types.ImageBuild, error)
Types ¶
type BuildBlock ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) Environment ¶
func (i *Image) Environment() types.Environment
func (*Image) MarshalJSON ¶ added in v0.5.0
type ImageBuild ¶
type ImageBuild struct {
// contains filtered or unexported fields
}
func NewImageBuild ¶
func NewImageBuild(buildPath, provider, provisioner string) *ImageBuild
func (*ImageBuild) Build ¶
func (b *ImageBuild) Build() error
func (*ImageBuild) MarshalJSON ¶ added in v0.5.0
func (b *ImageBuild) MarshalJSON() ([]byte, error)
func (*ImageBuild) Name ¶
func (b *ImageBuild) Name() string
func (*ImageBuild) ProviderType ¶
func (b *ImageBuild) ProviderType() string
func (*ImageBuild) Provisioner ¶
func (b *ImageBuild) Provisioner() string
type Machine ¶
type Machine struct { InstanceName string `json:"name"` InstanceID string `json:"id"` CurrentUpTime time.Duration `json:"up_time"` InstanceType string `json:"type"` PublicIPAddresses []string `json:"public_ip_addresses"` PrivateIPAddresses []string `json:"private_ip_addresses"` CurrentState types.MachineState `json:"current_state"` Env types.Environment `json:"-"` }
func (*Machine) Environment ¶
func (m *Machine) Environment() types.Environment
func (*Machine) NewSSHSession ¶
func (*Machine) PrivateIPAddress ¶ added in v0.5.5
type PackerConfig ¶
type PackerConfig struct { Source SourceBlock `hcl:"source,block"` Build BuildBlock `hcl:"build,block"` }
type Project ¶ added in v0.4.0
type Project struct {
// contains filtered or unexported fields
}
func NewProject ¶ added in v0.4.0
func (*Project) AddMachine ¶ added in v0.4.0
func (d *Project) AddMachine(machine *types.ProjectMachine, noApply bool) error
func (*Project) GetConfig ¶ added in v0.4.0
func (d *Project) GetConfig() (*types.ProjectConfig, error)
func (*Project) MarshalJSON ¶ added in v0.5.0
func (*Project) SaveConfig ¶ added in v0.4.0
func (*Project) TerraformApply ¶ added in v0.4.0
type SourceBlock ¶
Click to show internal directories.
Click to hide internal directories.