Movatterモバイル変換


[0]ホーム

URL:


registryinstance

module
v0.10.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2023 License:Apache-2.0

Details

Repository

github.com/redhat-developer/app-services-sdk-go

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/registryinstance

Usage

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.sh

to patch API

Directories

PathSynopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp