extensioninput

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package extensioninput defines the persistence boundary for non-secret extension inputs.

Index

Constants

This section is empty.

Variables

View Source
var ErrConflict = errors.New("extension inputs changed since preparation")

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Extension   string
	ProfileID   string
	WorkspaceID string
}

Instance addresses one exact cell; values do not cross profile or workspace boundaries.

type Mutation

type Mutation struct {
	InputID string
	Before  *Record
	After   *Record
}

Mutation carries rollback before-images; nil Before expects no row and nil After removes the row.

type Record

type Record struct {
	Type      string
	Value     json.RawMessage
	Active    bool
	UpdatedAt time.Time
}

Record retains inactive values for lossless manifest updates.

type Store

type Store interface {
	List(context.Context, Instance) (map[string]Record, error)
	Apply(context.Context, Instance, []Mutation) error
}

Store reads one instance and applies a complete mutation batch atomically.

type Value

type Value struct {
	Value    json.RawMessage `json:"value,omitempty"`
	VaultRef *string         `json:"vault_ref,omitzero"`
}

Value is one install/update input: exactly one of Value or VaultRef must be supplied.

Jump to

Keyboard shortcuts

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