Help us shape the future of Go! Take the 2026 Go Developer Survey

cluster

package
v0.55.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cluster contains local cluster bootstrap primitives.

Index

Constants

View Source
const JoinTokenVersion = "stackkit.cluster/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type JoinToken

type JoinToken struct {
	Version      string    `json:"version"`
	HomelabID    string    `json:"homelabId"`
	MainNode     MainNode  `json:"mainNode"`
	Token        string    `json:"token"`
	ExpiresAt    time.Time `json:"expiresAt"`
	AllowedRoles []string  `json:"allowedRoles"`
}

func GenerateJoinToken

func GenerateJoinToken(homelabID string, main MainNode, ttl time.Duration) (*JoinToken, error)

type MainNode

type MainNode struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Endpoint string `json:"endpoint"`
}

Jump to

Keyboard shortcuts

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