🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More
Socket
Book a DemoInstallSign in
Socket

microcks.io/go-client

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microcks.io/go-client

Go Modules
Version
v0.3.1
Version published
Created
Source

Microcks Go Client

A Go Client or SDK that allows you to interact with the Microcks API.

License Go version GitHub release Project Chat Artifact HUB CNCF Landscape

Build Status

Latest released version is 0.3.1.

Current development version is 0.4.0.

Fossa license and security scans

FOSSA Status FOSSA Status FOSSA Status

OpenSSF best practices on Microcks core

CII Best Practices OpenSSF Scorecard

Community

To get involved with our community, please make sure you are familiar with the project's Code of Conduct.

Versions

Latest released version is 0.3.1. Please check the table bealow to see what version of Microcks API it matches.

 Go ClientMicrocks Version
0.3.x1.10.0 and above
0.2.01.10.0 and above
0.1.01.8.0 and above

Installation

To get the latest version, use go1.22 and fetch using the go get command. For example:

go get microcks.io/go-client@latest

To get a specific version, use go1.21+ and fetch the desired version using the go get command. For example:

go get microcks.io/go-client@v0.3.0

Quickstart

package main

import (
	"context"
	"fmt"
	"log"

	client "microcks.io/go-client"
)

const server = "http://localhost:8080/api"

func main() {
	// Create client
	c, err := client.NewClientWithResponses(server)
	if err != nil {
		log.Fatal(err)
	}

	// Request the Keycloak configuration
	ctx := context.Background()
	resp, err := c.GetKeycloakConfigWithResponse(ctx)
	if err != nil {
		log.Fatal(err)
	}

	// Print the response
	fmt.Printf("%+v\n\n", resp.JSON200)
}

License

The Apache License (apache) - see LICENSE.md for more details.

FAQs

Package last updated on 10 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts