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.
Click to show internal directories.
Click to hide internal directories.