MCPcopy
hub / github.com/hashicorp/memberlist / GetKeys

Method GetKeys

keyring.go:146–151  ·  view source on GitHub ↗

GetKeys returns the current set of keys on the ring.

()

Source from the content-addressed store, hash-verified

144
145// GetKeys returns the current set of keys on the ring.
146func (k *Keyring) GetKeys() [][]byte {
147 k.l.Lock()
148 defer k.l.Unlock()
149
150 return k.keys
151}
152
153// GetPrimaryKey returns the key on the ring at position 0. This is the key used
154// for encrypting messages, and is the first key tried for decrypting messages.

Callers 8

TestKeyring_EmptyRingFunction · 0.95
TestKeyring_PrimaryOnlyFunction · 0.95
TestKeyring_AddRemoveUseFunction · 0.95
EncryptionEnabledMethod · 0.80
ingestPacketMethod · 0.80
decryptRemoteStateMethod · 0.80

Calls

no outgoing calls

Tested by 5

TestKeyring_EmptyRingFunction · 0.76
TestKeyring_PrimaryOnlyFunction · 0.76
TestKeyring_AddRemoveUseFunction · 0.76