cluster

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 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