updateKvdb

expect fun updateKvdb(kvdbId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, version: Long, force: Boolean, forceGenerateNewKey: Boolean = false, policies: ContainerPolicy? = null)

Updates an existing KVDB.

Parameters

kvdbId

ID of the KVDB to update

users

list of UserWithPubKey which indicates who will have access to the created KVDB

managers

list of UserWithPubKey which indicates who will have access (and management rights) to the created KVDB

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

version

current version of the updated KVDB

force

force update (without checking version)

forceGenerateNewKey

force to regenerate a key for the KVDB

policies

KVDB's policies

Throws

thrown when instance is closed.

thrown when method encounters an exception.

thrown when method encounters an unknown exception.

actual fun updateKvdb(kvdbId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, version: Long, force: Boolean, forceGenerateNewKey: Boolean, policies: ContainerPolicy?)

Updates an existing KVDB.

Parameters

kvdbId

ID of the KVDB to update

users

list of UserWithPubKey which indicates who will have access to the created KVDB

managers

list of UserWithPubKey which indicates who will have access (and management rights) to the created KVDB

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

version

current version of the updated KVDB

force

force update (without checking version)

forceGenerateNewKey

force to regenerate a key for the KVDB

policies

KVDB's policies

Throws

thrown when instance is closed.

thrown when method encounters an exception.

thrown when method encounters an unknown exception.

actual external fun updateKvdb(kvdbId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, version: Long, force: Boolean, forceGenerateNewKey: Boolean, policies: ContainerPolicy?)

Updates an existing KVDB.

Parameters

kvdbId

ID of the KVDB to update

users

list of UserWithPubKey which indicates who will have access to the created KVDB

managers

list of UserWithPubKey which indicates who will have access (and management rights) to the created KVDB

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

version

current version of the updated KVDB

force

force update (without checking version)

forceGenerateNewKey

force to regenerate a key for the KVDB

policies

KVDB's policies

Throws

thrown when instance is closed.

thrown when method encounters an exception.

thrown when method encounters an unknown exception.