Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver interface { // Exec executes the given PowerShell command Exec(string) error // ExecRet executes the given PowerShell command and returns a value ExecRet(string) (string, error) ExecRemote(cmd *packer.RemoteCmd) error // Verify checks to make sure that this driver should function // properly. If there is any indication the driver can't function, // this will return an error. Verify() error }
A driver is able to talk to PowerShell Azure and perform certain operations with it. Some of the operations on here may seem overly specific, but they were built specifically in mind to handle features of the HyperV builder for Packer, and to abstract differences in versions out of the builder steps, so sometimes the methods are extremely specific.
type PS4Driver ¶
type PS4Driver struct {
ExecPath string
}
func NewPS4Driver ¶
func (*PS4Driver) VerifyPSAzureModule ¶
Click to show internal directories.
Click to hide internal directories.