setup

package
v0.9.1-beta Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setup

type Setup struct {

	// Config object, can be empty struct
	C *config.Config

	// Identity wrapper, can be a empty age identity, in that case the error is
	// present
	Id id.Identity

	// The real repo path, if no from config toml, this will be current path
	Repository string
}

Setup contains the path of the secrets repository and the path of the age identity.

This allow to run the privage command in any directory

func NewFromArgs

func NewFromArgs(keyPath, repoPath, pivSlot string) (*Setup, error)

func NewFromConfigFile

func NewFromConfigFile(path string) (*Setup, error)

func (*Setup) Copy

func (s *Setup) Copy() *Setup

Copy returns a copy of the Setup s with an empty Identity

Jump to

Keyboard shortcuts

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