Documentation / @blazetrails/activesupport / EncryptedConfiguration
Class: EncryptedConfiguration
Defined in: packages/activesupport/lib/encrypted-configuration.ts:34
Extends
Constructors
Constructor
new EncryptedConfiguration(
__namedParameters):EncryptedConfiguration
Defined in: packages/activesupport/lib/encrypted-configuration.ts:46
Parameters
| Parameter | Type |
|---|---|
__namedParameters | { configPath: string; envKey: string; keyPath: string; raiseIfMissingKey: boolean; } |
__namedParameters.configPath | string |
__namedParameters.envKey | string |
__namedParameters.keyPath | string |
__namedParameters.raiseIfMissingKey | boolean |
Returns
EncryptedConfiguration
Inherited from
Properties
contentPath
readonlycontentPath:string
Defined in: packages/activesupport/lib/encrypted-file.ts:47
Inherited from
envKey
readonlyenvKey:string
Defined in: packages/activesupport/lib/encrypted-file.ts:49
Inherited from
keyPath
readonlykeyPath:string
Defined in: packages/activesupport/lib/encrypted-file.ts:48
Inherited from
raiseIfMissingKey
readonlyraiseIfMissingKey:boolean
Defined in: packages/activesupport/lib/encrypted-file.ts:50
Inherited from
EncryptedFile.raiseIfMissingKey
name
staticname:string="ActiveSupport::EncryptedConfiguration"
Defined in: packages/activesupport/lib/encrypted-configuration.ts:41
Returns the name of the function. Function names are read-only and can not be changed.
Methods
change()
change(
block):Promise<void>
Defined in: packages/activesupport/lib/encrypted-file.ts:102
Parameters
| Parameter | Type |
|---|---|
block | (tmpPath) => void | Promise<void> |
Returns
Promise<void>
Inherited from
config()
config():
Promise<Record<string,unknown>>
Defined in: packages/activesupport/lib/encrypted-configuration.ts:80
Returns
Promise<Record<string, unknown>>
dig()
dig(
key, ...identifiers):unknown
Defined in: packages/activesupport/lib/encrypted-configuration.ts:35
Parameters
| Parameter | Type |
|---|---|
key | string |
...identifiers | (string | number)[] |
Returns
unknown
fetch()
fetch(
key, ...rest):unknown
Defined in: packages/activesupport/lib/encrypted-configuration.ts:36
Parameters
| Parameter | Type |
|---|---|
key | string |
...rest | [] | [unknown] |
Returns
unknown
inspect()
inspect():
string
Defined in: packages/activesupport/lib/encrypted-configuration.ts:84
Returns
string
isKey()
isKey():
Promise<boolean>
Defined in: packages/activesupport/lib/encrypted-file.ts:81
Returns
Promise<boolean>
Inherited from
key()
key():
Promise<string|null>
Defined in: packages/activesupport/lib/encrypted-file.ts:73
Returns
Promise<string | null>
Inherited from
read()
read():
Promise<string>
Defined in: packages/activesupport/lib/encrypted-configuration.ts:60
Returns
Promise<string>
Missing Rails Name
strip — PERMANENT
Inherited from
validateBang()
validateBang():
Promise<void>
Defined in: packages/activesupport/lib/encrypted-configuration.ts:69
Returns
Promise<void>
write()
write(
contents):Promise<void>
Defined in: packages/activesupport/lib/encrypted-file.ts:96
Parameters
| Parameter | Type |
|---|---|
contents | string |
Returns
Promise<void>
Inherited from
expectedKeyLength()
staticexpectedKeyLength():number
Defined in: packages/activesupport/lib/encrypted-file.ts:68
Returns
number
Inherited from
EncryptedFile.expectedKeyLength
generateKey()
staticgenerateKey():string
Defined in: packages/activesupport/lib/encrypted-file.ts:64
Returns
string