dump

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPathForOutput

func GetPathForOutput(path string) string

GetPathForOutput

func NewOutput

func NewOutput(p, e, k string) (*output, error)

NewOutput returns an output type unless there is a validation error where it returns an error instead

func ToKube

func ToKube(c *Config, m map[string]interface{}) error

ToKube

Types

type Config

type Config struct {
	Debug       bool
	InputPath   string
	Filename    string
	Output      *output
	VaultConfig *vault.Config
}

Config

func New

func New(c *Config) (*Config, error)

func (*Config) ProcessOutput

func (c *Config) ProcessOutput(m map[string]interface{}) error

ProcessOutput takes action based on inputs to complete the desired output result

func (*Config) Secrets

func (c *Config) Secrets() error

type SecretScraper

type SecretScraper struct {
	Data        map[string]interface{}
	VaultConfig *vault.Config
	// contains filtered or unexported fields
}

func NewSecretScraper

func NewSecretScraper(vc *vault.Config) (*SecretScraper, error)

func (*SecretScraper) Run

func (s *SecretScraper) Run(path string, wg *sync.WaitGroup, n int) error

Run creates n number of workers to secret info from found paths

Jump to

Keyboard shortcuts

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