rejoinclient

package
v2.16.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package rejoinclient handles the automatic rejoining of a restarting node.

It does so by continuously sending rejoin requests to the JoinService of available control-plane endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RejoinClient

type RejoinClient struct {
	// contains filtered or unexported fields
}

RejoinClient is a client for requesting the needed information for rejoining a cluster as a restarting worker or control-plane node.

func New

func New(dial grpcDialer, nodeInfo metadata.InstanceMetadata,
	meta metadataAPI, log *slog.Logger,
) *RejoinClient

New returns a new RejoinClient.

func (*RejoinClient) Start

func (c *RejoinClient) Start(ctx context.Context, diskUUID string) (diskKey, measurementSecret []byte)

Start starts the rejoin client. The client will continuously request available control-plane endpoints from the metadata API and send rejoin requests to them. The function returns after a successful rejoin request has been performed.

Jump to

Keyboard shortcuts

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