github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/images/doc.go (about) 1 /* 2 Package images provides information and interaction with the images through 3 the OpenStack Compute service. 4 5 This API is deprecated and will be removed from a future version of the Nova 6 API service. 7 8 An image is a collection of files used to create or rebuild a server. 9 Operators provide a number of pre-built OS images by default. You may also 10 create custom images from cloud servers you have launched. 11 12 Example to List Images 13 14 listOpts := images.ListOpts{ 15 Limit: 2, 16 } 17 18 allPages, err := images.ListDetail(computeClient, listOpts).AllPages() 19 if err != nil { 20 panic(err) 21 } 22 23 allImages, err := images.ExtractImages(allPages) 24 if err != nil { 25 panic(err) 26 } 27 28 for _, image := range allImages { 29 fmt.Printf("%+v\n", image) 30 } 31 */ 32 package images