generator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

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

func NewCli

func NewCli(store store.Store, cfg *Config) *Cli

func (*Cli) ExecuteCmd

func (c *Cli) ExecuteCmd(cmd string, args ...string) string

func (*Cli) Export

func (c *Cli) Export(path string) error

func (*Cli) GeneratePassword

func (c *Cli) GeneratePassword() error

func (*Cli) GetPassword

func (c *Cli) GetPassword(key string) (string, error)

func (*Cli) Import

func (c *Cli) Import(csvPath string, concurrency int, withEncryption bool) error

func (*Cli) PrintHelp

func (c *Cli) PrintHelp()

type Commands

type Commands interface {
	GeneratePassword() error
	GetPassword(key string) (string, error)
	Export(path string) error
	Import(csvPath string, concurrency int, withEncryption bool) error
}

type Config

type Config struct {
	EncKey      string `json:"enc_key"`
	ExecTimeout uint   `json:"execution_timeout"`
	DbPath      string `json:"db_path"`
	LogsPath    string `json:"logs_path"`
}

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) WriteLogs

func (c *Config) WriteLogs(bytes []byte) error

type GenFlags

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

Jump to

Keyboard shortcuts

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