registryinstance
moduleThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
Go API client for Service Registry Instance
Managed Service Registry API Instance API that lets you interact with registry instances. Registry is a datastore for standard event schemas and API designs.
Installation
To install the package to your project usego get:
go get github.com/redhat-developer/app-services-sdk-go/registryinstanceUsage
Importing the package
Import thegithub.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal package into your code:
package mainimport ( "github.com/redhat-developer/app-services-sdk-go/registryinstance/apiv1internal")Basic usage
If you do not need to customise any of the default configuration values you can passnil to theNewAPIClient constructor:
client := registryinstance.NewAPIClient(nil)registries, resp, err := client.ArtifactsAPI.GetArtifacts(context.Background()).Execute()Configuration
You can override the default configuration options:
cfg := registryinstance.Config{ HTTPClient: yourHTTPClient, Debug: true, BaseURL: "http://localhost:8080",}client := registryinstance.NewAPIClient(&cfg)Endpoints
For a full list of the available endpoints, seeDocumentation for API Endpoints.
Local development
Registry API requires local patch in order to be valid.Please execute manually:
./scripts/patch_apis.shto patch API