Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Box ¶
type Box struct { Comment string `vcrypt:"comment,optional"` EdgeSlice []string `vcrypt:"edge,optional"` PublicKey string `vcrypt:"publickey"` }
Box config
type CryptexNode ¶
CryptexNode config
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder decodes data from a Reader.
func NewDecoder ¶
NewDecoder constructs a decoder from a Reader.
type Demux ¶
type Demux struct { Comment string `vcrypt:"comment,optional"` EdgeSlice []string `vcrypt:"edge,optional"` }
Demux config
type Mux ¶
type Mux struct { Comment string `vcrypt:"comment,optional"` EdgeSlice []string `vcrypt:"edge,optional"` }
Mux config
type OpenPGP ¶
type OpenPGP struct { Comment string `vcrypt:"comment,optional"` EdgeSlice []string `vcrypt:"edge,optional"` PublicKeys []string `vcrypt:"publickey"` }
OpenPGP config
type OpenPGPKey ¶
type OpenPGPKey struct { Comment string `vcrypt:"comment,optional"` KeyIDs []string `vcrypt:"keyid,optional"` }
OpenPGPKey config
type Plan ¶
type Plan struct { // Top level config Comment string `vcrypt:"comment,optional"` Root string `vcrypt:"root"` // Cryptex config SSSs map[string]SSS `vcrypt:"sss,section"` XORs map[string]XOR `vcrypt:"xor,section"` SecretBoxes map[string]SecretBox `vcrypt:"secretbox,section"` Boxes map[string]Box `vcrypt:"box,section"` RSAs map[string]RSA `vcrypt:"rsa,section"` OpenPGPs map[string]OpenPGP `vcrypt:"openpgp,section"` Muxes map[string]Mux `vcrypt:"mux,section"` Demuxes map[string]Demux `vcrypt:"demux,section"` // Secret config Passwords map[string]Password `vcrypt:"password,section"` OpenPGPKeys map[string]OpenPGPKey `vcrypt:"openpgp-key,section"` // Material config Materials map[string]Marker `vcrypt:"material,section"` }
Plan config
func (Plan) CryptexNode ¶
func (p Plan) CryptexNode(name string) (CryptexNode, bool)
CryptexNode returns the CryptexNode for the name.
func (Plan) SecretNode ¶
func (p Plan) SecretNode(name string) (SecretNode, bool)
SecretNode returns the SecretNode for the name.
type RSA ¶
type RSA struct { Comment string `vcrypt:"comment,optional"` EdgeSlice []string `vcrypt:"edge,optional"` PublicKey string `vcrypt:"publickey"` }
RSA config
type SSS ¶
type SSS struct { Comment string `vcrypt:"comment,optional"` EdgeSlice []string `vcrypt:"edge,optional"` N int `vcrypt:"max-shares"` K int `vcrypt:"required-shares"` }
SSS config
Click to show internal directories.
Click to hide internal directories.