Top 1.4% dependent packages on proxy.golang.org
Top 1.2% dependent repos on proxy.golang.org
Top 6.2% forks on proxy.golang.org
Top 1.2% docker downloads on proxy.golang.org
proxy.golang.org : github.com/chnsz/golangsdk
Package golangsdk provides a multi-vendor interface to OpenStack-compatible clouds. The library has a three-level hierarchy: providers, services, and resources. Provider structs represent the cloud providers that offer and manage a collection of services. You will generally want to create one Provider client per OpenStack cloud. Use your OpenStack credentials to create a Provider client. The IdentityEndpoint is typically refered to as "auth_url" or "OS_AUTH_URL" in information provided by the cloud operator. Additionally, the cloud may refer to TenantID or TenantName as project_id and project_name. Credentials are specified like so: You may also use the openstack.AuthOptionsFromEnv() helper function. This function reads in standard environment variables frequently found in an OpenStack `openrc` file. Again note that Gophercloud currently uses "tenant" instead of "project". 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: If you want to obtain the entire collection of pages without doing any intermediary processing on each page, you can use the AllPages method: 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. An example retry backoff function, which respects the 429 HTTP response code:
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/chnsz/golangsdk
License: Apache-2.0
Latest release: almost 2 years ago
First release: about 3 years ago
Namespace: github.com/chnsz
Dependent packages: 22
Dependent repositories: 22
Stars: 12 on GitHub
Forks: 32 on GitHub
Docker dependents: 4
Docker downloads: 399
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago
v0.0.0-20240124060411-0377ab67fa63
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240123030615-babe621592cf
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240122121400-2eb11d542566
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240122120732-a2e21dec9d4e
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240118082621-1b957d8c20ba
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240118080137-e40d4741dbae
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240112095931-5c9801e156b2
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240112032133-3e40257d5a71
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240111102138-4c58ff2562fa
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240111092809-f28842445723
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240111065248-fc4a6e18256c
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240110095817-8538d1628a56
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240110095703-a8198c185782
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240109121659-a6f50c7f58d6
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240109025837-8aa22d6dae58
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240109014842-64262875a62f
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240108014335-866add511311
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240105014415-f85b80e34b0e
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240105014258-b473beb6de22
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240104090724-adb48912a13e
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240104090556-11386e84fa92
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240104075417-e643b6c7ff4a
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240104014600-4287f9738784
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240103091712-61741c3e572a
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20240103070615-98052f465833
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231229075012-3457589ab494
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231228044327-568961831861
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231227110234-16eb63256210
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231225122148-76712b35cbb2
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231225075921-588b949b08d9
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231225015328-aea5a33cc443
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231221123619-f054d78ce0e6
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231218032934-228370eb4498
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231214114224-5c0c6475b733
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231214112327-68985475922f
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20231213050150-2843d895cbb4
Published: almost 2 years agoRegistry - Documentation - Download