github.com/gophercloud/gophercloud@v1.11.0/openstack/baremetal/apiversions/doc.go (about)

     1  /*
     2  Package apiversions provides information about the versions supported by a specific Ironic API.
     3  
     4  	Example to list versions
     5  
     6  		allVersions, err := apiversions.List(baremetalClient).Extract()
     7  		if err != nil {
     8  			panic("unable to get API versions: " + err.Error())
     9  		}
    10  
    11  		for _, version := range allVersions.Versions {
    12  			fmt.Printf("%+v\n", version)
    13  		}
    14  
    15  	Example to get a specific version
    16  
    17  		actual, err := apiversions.Get(baremetalClient).Extract()
    18  		if err != nil {
    19  			panic("unable to get API version: " + err.Error())
    20  		}
    21  */
    22  package apiversions