Documentation

Overview

    Package osimage provides a client for Operating System Images.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type IOType

    type IOType string
    const (
    	IOTypeProvisioned IOType = "Provisioned"
    	IOTypeStandard    IOType = "Standard"
    )

    type ListOSImagesResponse

    type ListOSImagesResponse struct {
    	XMLName  xml.Name  `xml:"Images"`
    	OSImages []OSImage `xml:"OSImage"`
    }

    type OSImage

    type OSImage struct {
    	Category          string  // Public || Private || MSDN
    	Label             string  // Specifies an identifier for the image.
    	LogicalSizeInGB   float64 //Specifies the size, in GB, of the image.
    	Name              string  // Specifies the name of the operating system image. This is the name that is used when creating one or more virtual machines using the image.
    	OS                string  // Linux || Windows
    	Eula              string  // Specifies the End User License Agreement that is associated with the image. The value for this element is a string, but it is recommended that the value be a URL that points to a EULA.
    	Description       string  // Specifies the description of the image.
    	Location          string  // The geo-location in which this media is located. The Location value is derived from storage account that contains the blob in which the media is located. If the storage account belongs to an affinity group the value is NULL.
    	AffinityGroup     string  // Specifies the affinity in which the media is located. The AffinityGroup value is derived from storage account that contains the blob in which the media is located. If the storage account does not belong to an affinity group the value is NULL and the element is not displayed in the response. This value is NULL for platform images.
    	MediaLink         string  // Specifies the location of the vhd file for the image. The storage account where the vhd is located must be associated with the specified subscription.
    	ImageFamily       string  // Specifies a value that can be used to group images.
    	PublishedDate     string  // Specifies the date when the image was added to the image repository.
    	IsPremium         string  // Indicates whether the image contains software or associated services that will incur charges above the core price for the virtual machine. For additional details, see the PricingDetailLink element.
    	PrivacyURI        string  `xml:"PrivacyUri"` // Specifies the URI that points to a document that contains the privacy policy related to the image.
    	RecommendedVMSize string  // Specifies the size to use for the virtual machine that is created from the image.
    	PublisherName     string  // The name of the publisher of the image. All user images have a publisher name of User.
    	PricingDetailLink string  // Specifies a URL for an image with IsPremium set to true, which contains the pricing details for a virtual machine that is created from the image.
    	SmallIconURI      string  `xml:"SmallIconUri"` // Specifies the URI to the small icon that is displayed when the image is presented in the Microsoft Azure Management Portal.
    	Language          string  // Specifies the language of the image.
    	IOType            IOType  // Provisioned || Standard
    }

    type OSImageClient

    type OSImageClient struct {
    	// contains filtered or unexported fields
    }

      OSImageClient is used to perform operations on Azure Locations

      func NewClient

      func NewClient(client management.Client) OSImageClient

        NewClient is used to instantiate a new OSImageClient from an Azure client.

        func (OSImageClient) ListOSImages

        func (c OSImageClient) ListOSImages() (ListOSImagesResponse, error)