Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a storage utility for secrets, information that is sensitive.

层级

  • SecretStorage

索引

Methods(3)

Properties(1)

Methods(3)

get

  • get(key: string): Thenable<undefined | string>
  • Retrieve a secret that was stored with key. Returns undefined if there is no password matching that key.

    Parameters

    • key: string

      The key the secret was stored under.

    Returns Thenable<undefined | string>

    The stored value or undefined.

store

  • store(key: string, value: string): Thenable<void>
  • Store a secret under a given key.

    Parameters

    • key: string

      The key to store the secret under.

    • value: string

      The secret.

    Returns Thenable<void>

delete

  • Remove a secret from storage.

    Parameters

    • key: string

      The key the secret was stored under.

    Returns Thenable<void>

Properties(1)

onDidChange

Fires when a secret is stored or deleted.

VS Code 插件开发中文文档 | VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc