Documentation ¶
Index ¶
- type Assets
- type LocalManifest
- type Provisioner
- type RemoteConfig
- type SimpleCmds
- func (c SimpleCmds) ChmodX(path string) error
- func (c SimpleCmds) MkdirP(dir string) error
- func (c SimpleCmds) MkdirPNonPriv(dir string) error
- func (c SimpleCmds) RunPriv(cmd string) error
- func (c SimpleCmds) Upload(dstPath string, input io.Reader) error
- func (c SimpleCmds) UploadDir(dstDir string, srcDir string, excl []string) error
- type UserConfig
- type VMProvisionerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assets ¶
type Assets struct {
// contains filtered or unexported fields
}
Assets represents assets directory that can be uploaded to a remote location
type LocalManifest ¶
type LocalManifest struct {
// contains filtered or unexported fields
}
LocalManifest represent a deployment manifest that can be uploaded to a remote location
func NewLocalManifest ¶
func NewLocalManifest(localPath *string) LocalManifest
func (LocalManifest) IsPresent ¶
func (m LocalManifest) IsPresent() bool
func (LocalManifest) Upload ¶
func (m LocalManifest) Upload(remotePath *string, cmds SimpleCmds) error
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
func (*Provisioner) Cancel ¶
func (p *Provisioner) Cancel()
func (*Provisioner) Prepare ¶
func (p *Provisioner) Prepare(raws ...interface{}) error
func (*Provisioner) Provision ¶
func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error
type RemoteConfig ¶
type RemoteConfig struct {
// contains filtered or unexported fields
}
func NewRemoteConfig ¶
func NewRemoteConfig( baseDir string, vmProvisionerConfig VMProvisionerConfig, localManifest LocalManifest, remoteManifestPath string, assets Assets, ) RemoteConfig
func (RemoteConfig) ConfigPath ¶
func (c RemoteConfig) ConfigPath() string
func (RemoteConfig) ExeLogPath ¶
func (c RemoteConfig) ExeLogPath() string
func (RemoteConfig) ExePath ¶
func (c RemoteConfig) ExePath() string
func (RemoteConfig) Upload ¶
func (c RemoteConfig) Upload(cmds SimpleCmds) error
type SimpleCmds ¶
type SimpleCmds struct {
// contains filtered or unexported fields
}
func NewSimpleCmds ¶
func NewSimpleCmds(sudoCmd string, ui packer.Ui, comm packer.Communicator) SimpleCmds
func (SimpleCmds) ChmodX ¶
func (c SimpleCmds) ChmodX(path string) error
func (SimpleCmds) MkdirP ¶
func (c SimpleCmds) MkdirP(dir string) error
func (SimpleCmds) MkdirPNonPriv ¶
func (c SimpleCmds) MkdirPNonPriv(dir string) error
MkdirPNonPriv creates directory chowned to user of this SSH connection
func (SimpleCmds) RunPriv ¶
func (c SimpleCmds) RunPriv(cmd string) error
type UserConfig ¶
type UserConfig struct { // Used to determine if debugging is requested common.PackerConfig `mapstructure:",squash"` // AssetsDir is a directory on a host FS with bosh-agent assets AssetsDir string `mapstructure:"assets_dir"` // ManifestPath is a path on a host FS to a deployment manifest ManifestPath *string `mapstructure:"manifest_path"` // RemoveManifestPath is a path on the guest FS to a deployment manifest // If a ManifestPath is provided, it will be uploaded to the RemoveManifestPath // If a ManifestPath is not provided, a manifest must be present at the location specified RemoteManifestPath string `mapstructure:"remote_manifest_path"` // FullStemcellCompatibility makes provisioner install additional dependencies FullStemcellCompatibility bool `mapstructure:"full_stemcell_compatibility"` // Agent configuration AgentInfrastructure string `mapstructure:"agent_infrastructure"` AgentPlatform string `mapstructure:"agent_platform"` AgentConfiguration map[string]interface{} `mapstructure:"agent_configuration"` // SSHPassword is used to run sudo SSHPassword string `mapstructure:"ssh_password"` // contains filtered or unexported fields }
func NewUserConfig ¶
func NewUserConfig(raws ...interface{}) (UserConfig, error)
func (*UserConfig) HasManifestPath ¶
func (c *UserConfig) HasManifestPath() bool
func (*UserConfig) IsDebug ¶
func (c *UserConfig) IsDebug() bool
func (*UserConfig) SudoCmd ¶
func (c *UserConfig) SudoCmd() string
func (*UserConfig) Validate ¶
func (c *UserConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.