inventory

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inventory

type Inventory struct {
	SecretsDir     string   `yaml:"secrets_dir"`
	DestinationDir string   `yaml:"destination_dir"`
	Secrets        []Secret `yaml:"secrets"`
}

func Read

func Read(r io.Reader) (Inventory, error)

func ReadFromFile

func ReadFromFile(path string) (Inventory, error)

func (*Inventory) Add

func (i *Inventory) Add(secret Secret)

func (*Inventory) Delete

func (i *Inventory) Delete(source string) bool

func (*Inventory) Write

func (i *Inventory) Write(w io.Writer) error

func (*Inventory) WriteToFile

func (i *Inventory) WriteToFile(filename string) error

type Secret

type Secret struct {
	Source      string `yaml:"source"`
	Destination string `yaml:"destination"`
	Namespace   string `yaml:"namespace"`
}

Jump to

Keyboard shortcuts

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