refactor storewrapper IP handling / add coordinator IP-Block

This commit is contained in:
Benedict 2022-03-30 14:28:14 +02:00 committed by Benedict Schlüter
parent 04be09d5d3
commit 8a6825c429
7 changed files with 361 additions and 159 deletions

View file

@ -12,8 +12,9 @@ type Core interface {
GetVPNPubKey() ([]byte, error)
SetVPNIP(string) error
GetCoordinatorVPNIP() string
InitializeStoreIPs() error
AddAdmin(pubKey []byte) (string, error)
GenerateNextIP() (string, error)
GetNextNodeIP() (string, error)
SwitchToPersistentStore() error
GetIDs(masterSecret []byte) (ownerID []byte, clusterID []byte, err error)
SetUpKMS(ctx context.Context, storageURI, kmsURI, kekID string, useExisting bool) error