Documentation
¶
Overview ¶
Package registration provides a gRPC client for agent and operator registration with nstance-server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides access to the RegistrationService
func (*Client) RegisterAgent ¶
func (c *Client) RegisterAgent(ctx context.Context, ident *identity.Identity, nonce, ipv4, ipv6, hostname string) error
RegisterAgent registers an agent using its nonce and public key, and stores the returned client cert. ipv4 and ipv6 are the agent's private IP addresses to report to the server. hostname is the agent's reported hostname.
type Config ¶
type Config struct {
ServerAddress string
ServerCACert x509.Certificate
}
Config holds connection settings for the registration gRPC client
Click to show internal directories.
Click to hide internal directories.