adapterkit

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 6 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 adapterkit implements the portable process framing for credential store adapters. Native lookup and write policy remain in each store adapter.

Index

Constants

This section is empty.

Variables

View Source
var ErrExists = errors.New("credential already exists; pass --replace to overwrite")

Functions

func Run

func Run(request Invocation, input io.Reader, output, diagnostics io.Writer, store Store) int

Run executes one CTX adapter protocol request. Values flow only through stdin/stdout, never through command arguments or environment variables.

Types

type Invocation

type Invocation struct {
	Operation string
	Selection string
	Arguments []string
}

Invocation is the minimal, host-independent operation delivered to a credential store. The adapter executable parses its own process envelope.

type Store

type Store interface {
	Check(context.Context) error
	Get(context.Context, string) ([]byte, error)
	Put(context.Context, string, []byte, bool) error
}

Store is implemented by an adapter that owns one native credential store.

Jump to

Keyboard shortcuts

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