secret

package
v0.0.0-...-474d2f3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(app *app.App) app.Config

func RandBytes

func RandBytes(count int) ([]byte, error)

Types

type Config

type Config struct {
	*app.App `flag:"-"`
	Format   string `flag:"format f" desc:"The output format; one of base16, base32, base64, PEM, blob"`
	Output   string `flag:"output o" desc:"Where the output is written"`
	Bytes    int    `flag:"bytes b" desc:"The number of bytes to generate (n bits / 8 bits per byte)"`
}

func (*Config) Args

func (c *Config) Args(cmd *cobra.Command, args []string) error

func (*Config) Run

func (c *Config) Run(cmd *cobra.Command, args []string) error

func (*Config) Use

func (c *Config) Use() string

func (*Config) Write

func (c *Config) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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