Categorygithub.com/metal-stack/duros-go
modulepackage
0.5.0
Repository: https://github.com/metal-stack/duros-go.git
Documentation: pkg.go.dev

# README

duros-go

Actions PkgGoDev Go Report Card codecov License

A lightbits duros api go client library.

A usage example can be found here.

# Packages

No description provided by the author
No description provided by the author

# Functions

Dial creates a LightOS cluster client.
NewJWTToken create a JWT Token to use to authenticate against a duros API endpoint subject: 'sub' claim, who will be using this JWT, example a persons or tenants name kid: this is the "key ID", the name of the credential (pub key) as uploaded to LightOS.
NewJWTTokenForCredential create a new JWTToken where subject and kid is taken from the credential.
No description provided by the author

# Constants

GRPC defines a plaitext communication.
GRPCS defines https protocol for the communication.

# Structs

Credentials specify the TLS Certificate based authentication for the grpc connection without having to use certificate files.
Credentials specify the TLS Certificate based authentication for the grpc connection If you provide credentials, provide either these or byte credentials but not both.
DialConfig is the configuration to create a duros-api connection.
No description provided by the author

# Type aliases

GRPCScheme the scheme to talk to the duros api endpoint, can be plaintext or https.