Simplify node lock and various small changes

Co-authored-by: Fabian Kammel <fabian@kammel.dev>
Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
This commit is contained in:
Malte Poll 2022-07-14 15:45:04 +02:00 committed by Paul Meyer
parent 2bcf001d52
commit cce2611e2a
31 changed files with 530 additions and 229 deletions

View file

@ -12,7 +12,7 @@ type ClusterKMS struct {
masterKey []byte
}
// CreateKEK sets the CoordinatorKMS masterKey.
// CreateKEK sets the ClusterKMS masterKey.
func (c *ClusterKMS) CreateKEK(ctx context.Context, keyID string, kek []byte) error {
c.masterKey = kek
return nil

View file

@ -12,7 +12,7 @@ func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
}
func TestCoordinatorKMS(t *testing.T) {
func TestClusterKMS(t *testing.T) {
assert := assert.New(t)
kms := &ClusterKMS{}
masterKey := []byte("Constellation")