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
purl: pkg:golang/github.com/chnsz/golangsdk
License: Apache-2.0
Latest release: over 1 year ago
First release: over 2 years ago
Namespace: github.com/chnsz
Dependent packages: 22
Dependent repositories: 22
Stars: 8 on GitHub
Forks: 11 on GitHub
Docker dependents: 4
Docker downloads: 399
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago
v0.0.0-20230717014129-0944d0814e48
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230712024159-ea710b5edec8
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230706031739-178b57c300a3
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230629122008-89117e92f461
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230628074732-fbfa8ef68d94
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230625112353-1622ec9a0644
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230625081446-f0436e7bcd68
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230625080148-4eaae4b5b99e
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230616030621-40826f6d30e4
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230613091728-d9b097aecb39
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230607084208-af9cb224d7a2
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230606072452-5c7cbe3711ca
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230606020717-bc3dccc35def
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230606014615-294b13be665c
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230605085104-98d25ddcfae7
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230531061124-d429dbae2745
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230531032846-271e0b51bd73
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230530080832-5259e6637c95
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230529125020-4ff8dce7b23a
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230525064225-b5b27a428622
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230523032534-67e80ad8105c
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230522025655-f4e01be42b05
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230522021148-62b2d945a502
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230522020201-e64df5730f50
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230519100506-7e1b244790bb
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230518090037-ea3f3dcb1e66
Published: almost 2 years agoRegistry - Documentation - Download
v0.0.0-20230518034805-37109d5ae6f9
Published: almost 2 years agoRegistry - Documentation - Download