Skip to main content

SecretsService

Functions

SetPublicKeySeed

SecretsService:SetPublicKeySeed(seednumber) → ()

Sets the public key seed for the cryptography-at-rest scenario

Start

SecretsService:Start() → ()

Starts the secret service. Should be done via ServiceBag.

PromiseSecret

SecretsService:PromiseSecret(secretKeystring) → Promise<string>

Promises a secret value

PromiseAllSecrets

SecretsService:PromiseAllSecrets() → @returnPromise<{string}>

Promises all secret values

ObserveSecret

SecretsService:ObserveSecret(secretKeystring) → Observable<string>

Observes a secret value

DeleteSecret

SecretsService:DeleteSecret(secretKeystring) → ()

Deletes a secret from the secret store

StoreSecret

SecretsService:StoreSecret(
secretKeystring,
valuestring
) → ()

Stores a secret in the secret store

ClearAllSecrets

SecretsService:ClearAllSecrets() → {string}

Clears all the secrets stored in the datastore

PromiseSecretKeyNamesList

SecretsService:PromiseSecretKeyNamesList() → {string}

Gets a list of all available secret keys for the game

Show raw api
{
    "functions": [
        {
            "name": "SetPublicKeySeed",
            "desc": "Sets the public key seed for the cryptography-at-rest scenario",
            "params": [
                {
                    "name": "seed",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 42,
                "path": "src/secrets/src/Server/SecretsService.lua"
            }
        },
        {
            "name": "Start",
            "desc": "Starts the secret service. Should be done via [ServiceBag].",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 54,
                "path": "src/secrets/src/Server/SecretsService.lua"
            }
        },
        {
            "name": "PromiseSecret",
            "desc": "Promises a secret value",
            "params": [
                {
                    "name": "secretKey",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<string>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 67,
                "path": "src/secrets/src/Server/SecretsService.lua"
            }
        },
        {
            "name": "PromiseAllSecrets",
            "desc": "Promises all secret values",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "@return Promise<{string}>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 92,
                "path": "src/secrets/src/Server/SecretsService.lua"
            }
        },
        {
            "name": "ObserveSecret",
            "desc": "Observes a secret value",
            "params": [
                {
                    "name": "secretKey",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 118,
                "path": "src/secrets/src/Server/SecretsService.lua"
            }
        },
        {
            "name": "DeleteSecret",
            "desc": "Deletes a secret from the secret store",
            "params": [
                {
                    "name": "secretKey",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 151,
                "path": "src/secrets/src/Server/SecretsService.lua"
            }
        },
        {
            "name": "StoreSecret",
            "desc": "Stores a secret in the secret store",
            "params": [
                {
                    "name": "secretKey",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "value",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 165,
                "path": "src/secrets/src/Server/SecretsService.lua"
            }
        },
        {
            "name": "ClearAllSecrets",
            "desc": "Clears all the secrets stored in the datastore",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ string }"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 190,
                "path": "src/secrets/src/Server/SecretsService.lua"
            }
        },
        {
            "name": "PromiseSecretKeyNamesList",
            "desc": "Gets a list of all available secret keys for the game",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ string }"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 201,
                "path": "src/secrets/src/Server/SecretsService.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "SecretsService",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/secrets/src/Server/SecretsService.lua"
    }
}