github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/imageservice/v2/imageimport/requests.go (about)

     1  package imageimport
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  // ImportMethod represents valid Import API method.
     6  type ImportMethod string
     7  
     8  const (
     9  	// GlanceDirectMethod represents glance-direct Import API method.
    10  	GlanceDirectMethod ImportMethod = "glance-direct"
    11  
    12  	// WebDownloadMethod represents web-download Import API method.
    13  	WebDownloadMethod ImportMethod = "web-download"
    14  )
    15  
    16  // Get retrieves Import API information data.
    17  func Get(c *golangsdk.ServiceClient) (r GetResult) {
    18  	_, r.Err = c.Get(infoURL(c), &r.Body, nil)
    19  	return
    20  }