secrets

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuntimeDirectory = "/run/autback/secrets"
)

Variables

View Source
var ErrRevoked = errors.New("secret reference is unavailable or revoked")

Functions

func ValueFile

func ValueFile(index int, name string) string

Types

type AccessRecorder

type AccessRecorder interface {
	RecordSecretAccess(context.Context, string, string, string) error
}

type Config

type Config struct {
	JobsRoot string
	Store    JobStore
	Resolver Resolver
	Access   AccessRecorder
}

type JobStore

type JobStore interface {
	Job(context.Context, string) (control.Job, error)
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(config Config) *Manager

func (*Manager) Cleanup

func (m *Manager) Cleanup(_ context.Context, operation control.Operation) error

func (*Manager) Prepare

func (m *Manager) Prepare(ctx context.Context, operation control.Operation) error

type ResolutionError

type ResolutionError struct {
	Name string
	Err  error
}

func (*ResolutionError) Error

func (e *ResolutionError) Error() string

func (*ResolutionError) Permanent

func (e *ResolutionError) Permanent() bool

func (*ResolutionError) Unwrap

func (e *ResolutionError) Unwrap() error

type Resolver

type Resolver interface {
	Resolve(context.Context, string, string) ([]byte, error)
}

type RuntimeValues

type RuntimeValues struct {
	Values      []string
	Environment []string
}

func LoadRuntime

func LoadRuntime(directory string) (RuntimeValues, error)

Jump to

Keyboard shortcuts

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