github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/delegate.go (about) 1 package extensions 2 3 import ( 4 "github.com/huaweicloud/golangsdk" 5 common "github.com/huaweicloud/golangsdk/openstack/common/extensions" 6 "github.com/huaweicloud/golangsdk/pagination" 7 ) 8 9 // ExtractExtensions interprets a Page as a slice of Extensions. 10 func ExtractExtensions(page pagination.Page) ([]common.Extension, error) { 11 return common.ExtractExtensions(page) 12 } 13 14 // Get retrieves information for a specific extension using its alias. 15 func Get(c *golangsdk.ServiceClient, alias string) common.GetResult { 16 return common.Get(c, alias) 17 } 18 19 // List returns a Pager which allows you to iterate over the full collection of extensions. 20 // It does not accept query parameters. 21 func List(c *golangsdk.ServiceClient) pagination.Pager { 22 return common.List(c) 23 }