github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/imageservice/v2/imageimport/requests.go (about)

     1  package imageimport
     2  
     3  import "github.com/chnsz/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  }