mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-30 21:30:16 +00:00 
			
		
		
		
	Add gophercloud openstack/networking/v2/extensions
Aka github.com/rackspace/gophercloud/openstack/networking/v2/extensions
This commit is contained in:
		
							
								
								
									
										21
									
								
								vendor/github.com/rackspace/gophercloud/openstack/common/extensions/requests.go
									
									
									
										generated
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										21
									
								
								vendor/github.com/rackspace/gophercloud/openstack/common/extensions/requests.go
									
									
									
										generated
									
									
										vendored
									
									
										Executable file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| package extensions | ||||
|  | ||||
| import ( | ||||
| 	"github.com/rackspace/gophercloud" | ||||
| 	"github.com/rackspace/gophercloud/pagination" | ||||
| ) | ||||
|  | ||||
| // Get retrieves information for a specific extension using its alias. | ||||
| func Get(c *gophercloud.ServiceClient, alias string) GetResult { | ||||
| 	var res GetResult | ||||
| 	_, res.Err = c.Get(ExtensionURL(c, alias), &res.Body, nil) | ||||
| 	return res | ||||
| } | ||||
|  | ||||
| // List returns a Pager which allows you to iterate over the full collection of extensions. | ||||
| // It does not accept query parameters. | ||||
| func List(c *gophercloud.ServiceClient) pagination.Pager { | ||||
| 	return pagination.NewPager(c, ListExtensionURL(c), func(r pagination.PageResult) pagination.Page { | ||||
| 		return ExtensionPage{pagination.SinglePageBase(r)} | ||||
| 	}) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user