Documentation
¶
Index ¶
- func CleanUpBootedVM(creds *azureCredentials, parameters DeploymentParameters, ...) (retErr error)
- func DeleteImageFromAzure(c *azureCredentials, imageName string) error
- func GetAzureCredentialsFromEnv() (*azureCredentials, error)
- func UploadImageToAzure(c *azureCredentials, imagePath string, imageName string) error
- func WithBootedImageInAzure(creds *azureCredentials, imageName, testId, publicKeyFile string, ...) (retErr error)
- type DeploymentParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpBootedVM ¶
func CleanUpBootedVM(creds *azureCredentials, parameters DeploymentParameters, authorizer autorest.Authorizer, testId string) (retErr error)
func DeleteImageFromAzure ¶
DeleteImageFromAzure deletes the image uploaded by osbuild-composer (or UpluadImageToAzure method).
func GetAzureCredentialsFromEnv ¶
func GetAzureCredentialsFromEnv() (*azureCredentials, error)
getAzureCredentialsFromEnv gets the credentials from environment variables If none of the environment variables is set, it returns nil. If some but not all environment variables are set, it returns an error.
func UploadImageToAzure ¶
UploadImageToAzure mimics the upload feature of osbuild-composer.
Types ¶
type DeploymentParameters ¶
type DeploymentParameters struct { NetworkInterfaceName deploymentParameter `json:"networkInterfaceName"` NetworkSecurityGroupName deploymentParameter `json:"networkSecurityGroupName"` VirtualNetworkName deploymentParameter `json:"virtualNetworkName"` PublicIPAddressName deploymentParameter `json:"publicIPAddressName"` VirtualMachineName deploymentParameter `json:"virtualMachineName"` DiskName deploymentParameter `json:"diskName"` ImageName deploymentParameter `json:"imageName"` Location deploymentParameter `json:"location"` ImagePath deploymentParameter `json:"imagePath"` AdminUsername deploymentParameter `json:"adminUsername"` AdminPublicKey deploymentParameter `json:"adminPublicKey"` }
struct for encoding deployment parameters
func NewDeploymentParameters ¶
func NewDeploymentParameters(creds *azureCredentials, imageName, testId, publicKey string) DeploymentParameters
Click to show internal directories.
Click to hide internal directories.