api

package
v0.0.0-...-d892afd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterResponse

type RegisterResponse struct {
	UniqueID string `json:"uniqueid"`
	Cert     string `json:"cert"`
	Key      string `json:"key"`
	CACert   string `json:"cacert"`
}

RegisterResponse represents a response from API registration call.

func RegisterWorker

func RegisterWorker(host, secret, name string, tags []string) (*RegisterResponse, error)

RegisterWorker registers a new worker at a Bhojpur Belaur instance. It uses the given secret for authentication and returns certs which can be used for a future mTLS connection.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL