Documentation ¶
Index ¶
Constants ¶
View Source
const UnknownGPGKey = "UnknownGPGKey"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfoFile ¶
type InfoFile struct { App string `json:"app"` Version uint16 `json:"ver"` // Fields for version 1 only // Passphrase Salt []byte `json:"slt,omitempty"` ConfirmationHash []byte `json:"ph,omitempty"` // GPG-encrypted key EncryptedKey []byte `json:"ek,omitempty"` // Fields for version 2+ DataPath string `json:"dp,omitempty"` Keys []InfoFileKey `json:"k,omitempty"` // Fields for version 4+ RepoId string `json:"id"` }
InfoFile is the content of the info file
func (*InfoFile) AddGPGWrappedKey ¶
AddGPGWrappedKey adds a GPG-wrapped key to an info file
func (*InfoFile) AddPassphrase ¶
AddPassphrase adds a passphrase to an info file
type InfoFileKey ¶
type InfoFileKey struct { // Wrapped master key MasterKey []byte `json:"m,omitempty"` // Passphrase Salt []byte `json:"s,omitempty"` ConfirmationHash []byte `json:"p,omitempty"` // GPG key id GPGKey string `json:"g,omitempty"` }
InfoFileKey is a key that can be used to unlock a repo
Click to show internal directories.
Click to hide internal directories.