Internal

internal/adapters/cli/sessionstore

Package sessionstore composes CLI session persistence with receipt trust checks from the committed workspace config.

import "github.com/nilstate/scafld/v2/internal/adapters/cli/sessionstore"

Package sessionstore composes CLI session persistence with receipt trust checks from the committed workspace config.

Functions

func New(ctx context.Context, root string) jsonstore.SessionStore

Source: internal/adapters/cli/sessionstore/sessionstore.go:15

New returns a JSON session store wired to replay receipt trust from the workspace's committed verify.trusted_keys_path when that config is valid.