Documentation
¶
Overview ¶
Package entry implements a simple replacement strategy as a mapper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mutation ¶
type Mutation struct {
// contains filtered or unexported fields
}
Mutation provides APIs for manipulating entries.
func NewMutation ¶
NewMutation creates a mutation object from a previous value which can be modified. To create a new value: - Create a new mutation for a user starting with the previous value with NewMutation. - Change the value with SetCommitment and ReplaceAuthorizedKeys. - Finalize the changes and create the mutation with SerializeAndSign.
func (*Mutation) ReplaceAuthorizedKeys ¶
ReplaceAuthorizedKeys sets authorized keys to pubkeys. pubkeys must contain at least one key.
func (*Mutation) SerializeAndSign ¶
func (m *Mutation) SerializeAndSign(signers []signatures.Signer) (*tpb.UpdateEntryRequest, error)
SerializeAndSign produces the mutation.
func (*Mutation) SetCommitment ¶
SetCommitment updates entry to be a commitment to data.
Click to show internal directories.
Click to hide internal directories.