nodegrant

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package nodegrant mints the node grants of the CSI plugin.

Index

Constants

View Source
const TTL = time.Hour

TTL is the life of a node grant. The store keeps a rotated key for as long.

Variables

This section is empty.

Functions

This section is empty.

Types

type Minter

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

Minter signs the node grant of a workspace volume.

func Load

func Load(path string) (*Minter, error)

Load reads a key file: JSON {"kid","key"}, where key is the standard base64 of an Ed25519 private key or of its 32-byte seed.

func (*Minter) Mint

func (m *Minter) Mint(pub volume.Publication) (string, error)

Mint returns a node grant for the workspace, epoch and repository of pub. It fails when the claims are incomplete.

Jump to

Keyboard shortcuts

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