Documentation ¶
Index ¶
- type Entry
- type Manager
- func (m *Manager) AppendToSigchain(newEntry Entry) error
- func (m *Manager) ApplySigchain(rawSigchain []byte) (updatedAnchors []string, err error)
- func (m *Manager) Close() error
- func (m *Manager) GetSigchainByHash(hash string) ([]Entry, error)
- func (m *Manager) GetSigchainByNamespace(namespace string) ([]Entry, error)
- type MarshalledEntry
- type MarshalledEntryNoSig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Hash string AllowedSigners []util.AllowedSigner EncryptionKeys []age.Identity ParentHash *string Signature *string }
func ParseSigchain ¶
func (*Entry) Marshal ¶
func (entry *Entry) Marshal() (MarshalledEntry, error)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewSigchainManager ¶
func (*Manager) AppendToSigchain ¶
TODO add functions to append to sigchain - append to sigchain (use ssh-agent for signing operation (ensure only a key allowed by the current sigchain setup is used))
func (*Manager) ApplySigchain ¶
ApplySigchain applies a new sigchain delta to the database.
func (*Manager) GetSigchainByHash ¶
type MarshalledEntry ¶
type MarshalledEntry struct { AllowedSigners []util.MarshalledAllowedSigner `json:"allowed_signers"` EncryptionKeys []age.Identity `json:"encryption_keys"` ParentHash *string `json:"parent_hash"` Signature *string `json:"signature"` }
func (*MarshalledEntry) GetHash ¶
func (m *MarshalledEntry) GetHash() (string, error)
func (*MarshalledEntry) Unmarshal ¶
func (m *MarshalledEntry) Unmarshal() (Entry, error)
type MarshalledEntryNoSig ¶
type MarshalledEntryNoSig struct { AllowedSigners []util.MarshalledAllowedSigner `json:"allowed_signers"` ParentHash *string `json:"parent_hash"` }
Click to show internal directories.
Click to hide internal directories.