cli

package
v0.0.0-...-da0747f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalFlags = &globalFlags{}
)
View Source
var (
	Version string
)

Functions

func MustConfig

func MustConfig() *config.Config

func New

func New(in io.Reader, out, err io.Writer) *cobra.Command

func NewCmdSecret

func NewCmdSecret(in io.Reader, out io.Writer) *cobra.Command

func NewCmdSecretCreate

func NewCmdSecretCreate(in io.Reader, out io.Writer) *cobra.Command

func NewCmdSecretDecrypt

func NewCmdSecretDecrypt(in io.Reader, out io.Writer) *cobra.Command

func NewCmdSecretEncrypt

func NewCmdSecretEncrypt(in io.Reader, out io.Writer) *cobra.Command

func NewCmdSecretGet

func NewCmdSecretGet(in io.Reader, out io.Writer) *cobra.Command

func NewCmdVersion

func NewCmdVersion(out io.Writer) *cobra.Command

Types

type CreateSecretCmdOptions

type CreateSecretCmdOptions struct {
	Threshold    int
	PublicShares int
	Plaintext    string
	Receivers    Receivers
}

type EncryptSecretCmdOptions

type EncryptSecretCmdOptions struct {
	Threshold    int
	PublicShares int
	Plaintext    string
	Receivers    Receivers
}

type GetSecretCmdOptions

type GetSecretCmdOptions struct {
	NoDecrypt bool
}

type Receivers

type Receivers []*crypto.X509Participant

func (*Receivers) Set

func (r *Receivers) Set(value string) error

func (*Receivers) String

func (r *Receivers) String() string

func (*Receivers) Type

func (r *Receivers) Type() string

Jump to

Keyboard shortcuts

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