Skip to content

universe-sh/client-server-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for openapi

Universe.sh kourou API

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.0.1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://api-kourou-0-0-1.endpoints.labs-console-universe-sh.cloud.goog

Class Method HTTP request Description
EventsApi AddEvents Post /v1/events
SatellitesApi CreateMetrics Post /v1/satellites/{cloud}/{satellite}/{pool}/metrics
SatellitesApi ListPools Get /v1/satellites/{cloud}/{satellite}/pools
SatellitesApi ReadSatellite Get /v1/satellites/{cloud}/{satellite}

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
    Key: "APIKEY",
    Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

oss@universe.sh

About

Minimal API Golang client for agent and servers (OpenAPI)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages