Constructs a new SecretsTask.
Optional
properties: ISecretsTaskProperties to set
The authority of the secrets that are to be requested.
The url of the server to request secrets from. The default is https://api.secrets.switchboard.xyz.
Static
createCreates a new SecretsTask instance using the specified properties.
Optional
properties: ISecretsTaskProperties to set
SecretsTask instance
Static
decodeDecodes a SecretsTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
SecretsTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a SecretsTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
SecretsTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified SecretsTask message. Does not implicitly verify messages.
SecretsTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified SecretsTask message, length delimited. Does not implicitly verify messages.
SecretsTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a SecretsTask message from a plain object. Also converts values to their respective internal types.
Plain object
SecretsTask
Static
getStatic
toCreates a plain object from a SecretsTask message. Also converts values to other types if specified.
SecretsTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
Securely request secrets from a Switchboard SecretsServer that are owned by a specific authority. Any secrets that are returned for the current feed will then be unwrapped into variables to be accessed later.
Input: None
Returns: The input
Example: SecretsTask