Module state

Source
Expand description

Secrets Manager state management.

Secrets Manager supports persisting state to an encrypted file. This state file primarily contains the auth token which circumvents rate limiting on frequent logins.

Structsยง

ClientState ๐Ÿ”’
The content of the state file.

Enumsยง

StateFileError

Constantsยง

STATE_VERSION ๐Ÿ”’
Current version of the state file. This should be incremented whenever backwards incompatible changes are done.

Functionsยง

get ๐Ÿ”’
Reads, parses and decrypts a state file using the provided access token.
set ๐Ÿ”’
Serializes and encrypts the state using the provided access token.