createStore

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

Creates a new Store in given Context.

Return

Created Store ID

Parameters

contextId

ID of the Context to create the Store in

users

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

managers

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

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual fun createStore(contextId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, policies: ContainerPolicy?): String

Creates a new Store in given Context.

Return

Created Store ID

Parameters

contextId

ID of the Context to create the Store in

users

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

managers

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

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception

actual external fun createStore(contextId: String, users: List<UserWithPubKey>, managers: List<UserWithPubKey>, publicMeta: ByteArray, privateMeta: ByteArray, policies: ContainerPolicy?): String

Creates a new Store in given Context.

Return

Created Store ID

Parameters

contextId

ID of the Context to create the Store in

users

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

managers

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

publicMeta

public (unencrypted) metadata

privateMeta

private (encrypted) metadata

Throws

thrown when instance is closed

thrown when method encounters an exception

thrown when method encounters an unknown exception