Break authentication methods of the Store interface to AuthenticationStore
@@ -10,9 +10,7 @@ type Store interface {
AssetStore
// Authentication
- CreateJWTSecret([]byte) error
- GetJWTSecret() ([]byte, error)
- UpdateJWTSecret([]byte) error
+ AuthenticationStore
// Checks
GetChecks() ([]*types.Check, error)
@@ -64,6 +62,13 @@ type AssetStore interface {
KeepaliveStore
}
+// AuthenticationStore is responsible for managing the authentication state
+type AuthenticationStore interface {
+ CreateJWTSecret([]byte) error
+ GetJWTSecret() ([]byte, error)
+ UpdateJWTSecret([]byte) error
+}
+
// KeepaliveStore is responsible for updating entity keepalive data.
type KeepaliveStore interface {
// UpdateKeepalive updates the current expiration time for an entity's
