File: doc.go

package info (click to toggle)
golang-github-gophercloud-gophercloud 0.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, bullseye-backports
  • size: 10,224 kB
  • sloc: sh: 125; makefile: 21
file content (31 lines) | stat: -rw-r--r-- 736 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
Package apiversions provides information and interaction with the different
API versions for the OpenStack Block Storage service, code-named Cinder.

Example of Retrieving all API Versions

	allPages, err := apiversions.List(client).AllPages()
	if err != nil {
		panic("Unable to get API versions: %s", err)
	}

	allVersions, err := apiversions.ExtractAPIVersions(allPages)
	if err != nil {
		panic("Unable to extract API versions: %s", err)
	}

	for _, version := range versions {
		fmt.Printf("%+v\n", version)
	}


Example of Retrieving an API Version

	version, err := apiversions.Get(client, "v3").Extract()
	if err != nil {
		panic("Unable to get API version: %s", err)
	}

	fmt.Printf("%+v\n", version)
*/
package apiversions