varrun

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package varrun delivers an explicit subset of stored variables to a direct child process without invoking a shell.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedactor

func NewRedactor(dst io.Writer, values []string) io.WriteCloser

NewRedactor returns a bounded streaming writer that replaces exact secret byte strings, including matches split across Write calls.

Types

type Options

type Options struct {
	Command     []string
	Variables   []vault.Variable
	Environment []string
	Stdin       io.Reader
	Stdout      io.Writer
	Stderr      io.Writer
	StdoutTTY   bool
	StderrTTY   bool
	NoRedact    bool
	ForceRedact bool
}

Options controls one child process invocation.

type Result

type Result struct{ ExitCode int }

Result describes a child that was successfully started and waited for.

func Run

func Run(ctx context.Context, opts Options) (Result, error)

Run starts and waits for a direct child process.

Jump to

Keyboard shortcuts

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