proxy.golang.org : github.com/easystack/gophercloud : v0.12.0
Package gophercloud provides a multi-vendor interface to OpenStack-compatible clouds. The library has a three-level hierarchy: providers, services, and resources. Provider structs represent the service providers that offer and manage a collection of services. Examples of providers include: OpenStack, Rackspace, HP. These are defined like so: Service structs are specific to a provider and handle all of the logic and operations for a particular OpenStack service. Examples of services include: Compute, Object Storage, Block Storage. In order to define one, you need to pass in the parent provider, like so: Resource structs are the domain models that services make use of in order to work with and represent the state of API resources: Intermediate Result structs are returned for API operations, which allow generic access to the HTTP headers, response body, and any errors associated with the network transaction. To turn a result into a usable resource struct, you must call the Extract method which is chained to the response, or an Extract function from an applicable extension: All requests that enumerate a collection return a Pager struct that is used to iterate through the results one page at a time. Use the EachPage method on that Pager to handle each successive Page in a closure, then use the appropriate extraction method from that request's package to interpret that Page as a slice of results: This top-level package contains utility functions and data types that are used throughout the provider and service packages. Of particular note for end users are the AuthOptions and EndpointOpts structs.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/easystack/[email protected]
Published:
Indexed:
Related tag:
v0.12.0
- golang.org/x/crypto v0.0.0-20191202143827-86a70503ff7e
- golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933
- golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
- golang.org/x/sys v0.0.0-20191128015809-6d18c012aee9
- golang.org/x/text v0.3.2
- golang.org/x/tools v0.0.0-20191203134012-c197fd4bf371
- golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898
- gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15
- gopkg.in/yaml.v2 v2.2.7