createKvdb

expect fun createKvdb(contextId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, policies: ContainerPolicy? = null): String

Creates a new KVDB in given Context.

Return

ID of the created KVDB

Parameters

contextId

ID of the Context to create the KVDB in

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

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 createKvdb(contextId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, policies: ContainerPolicy?): String

Creates a new KVDB in given Context.

Return

ID of the created KVDB

Parameters

contextId

ID of the Context to create the KVDB in

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

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 createKvdb(contextId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, policies: ContainerPolicy?): String

Creates a new KVDB in given Context.

Return

ID of the created KVDB

Parameters

contextId

ID of the Context to create the KVDB in

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

policies

KVDB's policies

Throws

thrown when instance is closed.

thrown when method encounters an exception.

thrown when method encounters an unknown exception.