Type Alias SecretStore

SecretStore: {
    canSecretStoreHaveMappings(secretStoreTypeId: string): boolean;
    createSecretStoreExportTemplate(): SecretStoreExportInterface;
    createSecretStoreMapping(
        secretStoreId: string,
        secretStoreTypeId: string,
        secretStoreMappingData: SecretStoreMappingSkeleton,
        globalConfig: boolean,
    ): Promise<SecretStoreMappingSkeleton>;
    deleteSecretStore(
        secretStoreId: string,
        secretStoreTypeId: string,
        globalConfig: boolean,
    ): Promise<SecretStoreSkeleton>;
    deleteSecretStoreMapping(
        secretStoreId: string,
        secretStoreTypeId: string,
        secretId: string,
        globalConfig: boolean,
    ): Promise<SecretStoreMappingSkeleton>;
    deleteSecretStoreMappings(
        secretStoreId: string,
        secretStoreTypeId: string,
        globalConfig: boolean,
        resultCallback?: ResultCallback<SecretStoreMappingSkeleton>,
    ): Promise<SecretStoreMappingSkeleton[]>;
    deleteSecretStores(
        globalConfig: boolean,
        resultCallback?: ResultCallback<SecretStoreSkeleton>,
    ): Promise<SecretStoreSkeleton[]>;
    exportSecretStore(
        secretStoreId: string,
        secretStoreTypeId: string,
        globalConfig: boolean,
    ): Promise<SecretStoreExportInterface>;
    exportSecretStores(
        globalConfig: boolean,
        resultCallback?: ResultCallback<SecretStoreSkeleton>,
    ): Promise<SecretStoreExportInterface>;
    importSecretStores(
        importData: SecretStoreExportInterface,
        globalConfig: boolean,
        secretStoreId?: string,
        secretStoreTypeId?: string,
        resultCallback?: ResultCallback<SecretStoreSkeleton>,
    ): Promise<SecretStoreExportSkeleton[]>;
    readSecretStore(
        secretStoreId: string,
        secretStoreTypeId: string,
        globalConfig: boolean,
    ): Promise<SecretStoreSkeleton>;
    readSecretStoreMapping(
        secretStoreId: string,
        secretStoreTypeId: string,
        secretId: string,
        globalConfig: boolean,
    ): Promise<SecretStoreMappingSkeleton>;
    readSecretStoreMappings(
        secretStoreId: string,
        secretStoreTypeId: string,
        globalConfig: boolean,
    ): Promise<SecretStoreMappingSkeleton[]>;
    readSecretStores(globalConfig: boolean): Promise<SecretStoreSkeleton[]>;
    readSecretStoreSchema(
        secretStoreTypeId: string,
        globalConfig: boolean,
    ): Promise<SecretStoreSchemaSkeleton>;
    updateSecretStore(
        secretStoreData: SecretStoreSkeleton,
        globalConfig: boolean,
    ): Promise<SecretStoreSkeleton>;
    updateSecretStoreMapping(
        secretStoreId: string,
        secretStoreTypeId: string,
        secretStoreMappingData: SecretStoreMappingSkeleton,
        globalConfig: boolean,
    ): Promise<SecretStoreMappingSkeleton>;
}

Type declaration

  • canSecretStoreHaveMappings:function
    • Function that returns true if the given secret store type can have mappings, false otherwise

      Parameters

      • secretStoreTypeId: string

        The secret store type

      Returns boolean

      true if the given secret store type can have mappings, false otherwise

  • createSecretStoreExportTemplate:function
  • createSecretStoreMapping:function
    • Create secret store mapping. Will throw if type is not defined and multiple secret stores with the same id are found.

      Parameters

      • secretStoreId: string

        Secret store id

      • secretStoreTypeId: string

        Secret store type id (optional)

      • secretStoreMappingData: SecretStoreMappingSkeleton

        The secret store mapping data,

      • globalConfig: boolean

        true if the secret store is global, false otherwise. Default: false.

      Returns Promise<SecretStoreMappingSkeleton>

      a promise that resolves to a secret store mapping object of the mapping created

  • deleteSecretStore:function
    • Delete secret store by id

      Parameters

      • secretStoreId: string

        Secret store id

      • secretStoreTypeId: string

        Secret store type id (optional)

      • globalConfig: boolean

        true if the secret store mapping is global, false otherwise. Default: false.

      Returns Promise<SecretStoreSkeleton>

      a promise that resolves to a secret store object

  • deleteSecretStoreMapping:function
    • Delete secret store mapping

      Parameters

      • secretStoreId: string

        Secret store id

      • secretStoreTypeId: string

        Secret store type id (optional)

      • secretId: string

        Secret store mapping label

      • globalConfig: boolean

        true if the secret store mapping is global, false otherwise. Default: false.

      Returns Promise<SecretStoreMappingSkeleton>

      a promise that resolves to a secret store mapping object

  • deleteSecretStoreMappings:function
  • deleteSecretStores:function
  • exportSecretStore:function
    • Export a single secret store by id. The response can be saved to file as is. Will throw if type is not defined and multiple secret stores with the same id are found.

      Parameters

      • secretStoreId: string

        Secret store id

      • secretStoreTypeId: string

        Secret store type id (optional)

      • globalConfig: boolean

        true if global secret store is the target of the operation, false otherwise. Default: false.

      Returns Promise<SecretStoreExportInterface>

      Promise resolving to a SecretStoreExportInterface object.

  • exportSecretStores:function
  • importSecretStores:function
  • readSecretStore:function
    • Read secret store by id. Will throw if type is not defined and multiple secret stores with the same id are found.

      Parameters

      • secretStoreId: string

        Secret store id

      • secretStoreTypeId: string

        Secret store type id (optional)

      • globalConfig: boolean

        true if global secret store is the target of the operation, false otherwise. Default: false.

      Returns Promise<SecretStoreSkeleton>

      a promise that resolves to a secret store object

  • readSecretStoreMapping:function
    • Read secret store mapping. Will throw if type is not defined and multiple secret stores with the same id are found.

      Parameters

      • secretStoreId: string

        Secret store id

      • secretStoreTypeId: string

        Secret store type id (optional)

      • secretId: string

        Secret store mapping label

      • globalConfig: boolean

        true if the secret store is global, false otherwise. Default: false.

      Returns Promise<SecretStoreMappingSkeleton>

      a promise that resolves to an array of secret store mapping objects

  • readSecretStoreMappings:function
    • Read secret store mappings. Will throw if type is not defined and multiple secret stores with the same id are found.

      Parameters

      • secretStoreId: string

        Secret store id

      • secretStoreTypeId: string

        Secret store type id (optional)

      • globalConfig: boolean

        true if the secret store is global, false otherwise. Default: false.

      Returns Promise<SecretStoreMappingSkeleton[]>

      a promise that resolves to an array of secret store mapping objects

  • readSecretStores:function
    • Read all secret stores.

      Parameters

      • globalConfig: boolean

        true if global secret stores are the target of the operation, false otherwise. Default: false.

      Returns Promise<SecretStoreSkeleton[]>

      a promise that resolves to an array of secret store objects

  • readSecretStoreSchema:function
    • Read secret store schema

      Parameters

      • secretStoreTypeId: string

        Secret store type id

      • globalConfig: boolean

        true if the secret store is global, false otherwise. Default: false.

      Returns Promise<SecretStoreSchemaSkeleton>

      a promise that resolves to a secret store schema object

  • updateSecretStore:function
  • updateSecretStoreMapping:function
    • Update secret store mapping. Will throw if type is not defined and multiple secret stores with the same id are found.

      Parameters

      • secretStoreId: string

        Secret store id

      • secretStoreTypeId: string

        Secret store type id (optional)

      • secretStoreMappingData: SecretStoreMappingSkeleton

        secret store mapping to import

      • globalConfig: boolean

        true if the secret store mapping is global, false otherwise. Default: false.

      Returns Promise<SecretStoreMappingSkeleton>

      a promise that resolves to a secret store mapping object