api

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 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 Gaia 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