subcommand

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(env *flargs.Environment, globals ParamSet) error

Assert creates a signed assertion others can use to verify and trust you

func Decrypt

func Decrypt(env *flargs.Environment, globals *ParamSet, _ []string) error

Decrypt decrypts an encrypted message

func Echo

func Echo(env *flargs.Environment) error

echo takes what it's given on stdIn outputs it unchanged to stdOut. @note: this may not be useful in the final product, but it's helpful for debugging

func Encrypt

func Encrypt(env *flargs.Environment, globals *ParamSet, args []string) error

Encrypt encrypts a message to a recipient passed in the "--to" argument

func Info

func Info(env *flargs.Environment, globals *ParamSet, _ []string) error

Info outputs public information about oneself.

func Init

func Init(env *flargs.Environment, settings *ParamSet) error

Init creates a new Oracle. You must pass in a valid path to a file, where the private key information will be held

func Peers

func Peers(env *flargs.Environment, globals *ParamSet) error

func Sign

func Sign(env *flargs.Environment, settings *ParamSet) error

func Verify

func Verify(env *flargs.Environment, settings *ParamSet) error

Types

type OracleError

type OracleError struct {
	// contains filtered or unexported fields
}
var ErrNotImplemented *OracleError = NewOracleError("not implemeneted", nil)

func NewOracleError

func NewOracleError(msg string, child error) *OracleError

func (*OracleError) Error

func (or *OracleError) Error() string

type ParamSet

type ParamSet struct {
	Format string
	Config *os.File
	Me     *oracle.Oracle
	Them   oracle.Peer
}

func ParseGlobals

func ParseGlobals(args []string) (*ParamSet, []string, error)

Jump to

Keyboard shortcuts

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