keys

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 35 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 keys implements the `akt context keys` CLI commands for managing cryptographic keys within the context's keyring.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(getKeyring func() (sdkkeyring.Keyring, error), recorder Recorder) *cobra.Command

Commands returns the "keys" command tree. recorder receives every keyring mutation for the action log (SPEC §2.2.2); it may be nil.

Types

type Recorder added in v0.0.4

type Recorder func(cmd *cobra.Command, action string, actionErr error, details map[string]string)

Recorder records one key-management action in the action log of the context the command is running against (SPEC §2.2.2, §5.6). A nil actionErr records a successful mutation, a non-nil one records the failed attempt.

The keys commands cannot open that log themselves: it belongs to a context, and internal/cli/context — which owns the single write path for context entries — imports this package, so the dependency can only run the other way. The recorder is therefore injected. A nil Recorder disables recording.

Secret material (mnemonics, BIP39 passphrases, armor passphrases, armored keys) is never passed to a Recorder.

Jump to

Keyboard shortcuts

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