Documentation ¶
Index ¶
- func Init(stub cached_stub.CachedStubInterface, logLevel ...shim.LoggingLevel) ([]byte, error)
- type CloudantDatastoreImpl
- func (ds CloudantDatastoreImpl) ComputeHash(stub cached_stub.CachedStubInterface, encryptedData []byte) string
- func (ds CloudantDatastoreImpl) Delete(stub cached_stub.CachedStubInterface, dataKey string) error
- func (ds CloudantDatastoreImpl) Get(stub cached_stub.CachedStubInterface, dataKey string) ([]byte, error)
- func (ds CloudantDatastoreImpl) GetDatastoreConnection() datastore.DatastoreConnection
- func (ds CloudantDatastoreImpl) Instantiate(conn datastore.DatastoreConnection) (datastore.DatastoreInterface, error)
- func (ds CloudantDatastoreImpl) IsReady() bool
- func (ds CloudantDatastoreImpl) Put(stub cached_stub.CachedStubInterface, encryptedData []byte) (string, error)
- type DbCloudantData
- type DbCloudantDataCreate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(stub cached_stub.CachedStubInterface, logLevel ...shim.LoggingLevel) ([]byte, error)
Init sets up the cloudant package
Types ¶
type CloudantDatastoreImpl ¶
type CloudantDatastoreImpl struct {
// contains filtered or unexported fields
}
Shell of cloudant impl. To be impl in different MR
func (CloudantDatastoreImpl) ComputeHash ¶
func (ds CloudantDatastoreImpl) ComputeHash(stub cached_stub.CachedStubInterface, encryptedData []byte) string
func (CloudantDatastoreImpl) Delete ¶
func (ds CloudantDatastoreImpl) Delete(stub cached_stub.CachedStubInterface, dataKey string) error
func (CloudantDatastoreImpl) Get ¶
func (ds CloudantDatastoreImpl) Get(stub cached_stub.CachedStubInterface, dataKey string) ([]byte, error)
func (CloudantDatastoreImpl) GetDatastoreConnection ¶
func (ds CloudantDatastoreImpl) GetDatastoreConnection() datastore.DatastoreConnection
func (CloudantDatastoreImpl) Instantiate ¶
func (ds CloudantDatastoreImpl) Instantiate(conn datastore.DatastoreConnection) (datastore.DatastoreInterface, error)
Instantiate initializes the database and connection connectS?tring of cloudant datastore should have the following parameters username - user name password - password database - database name host - complete host url create_database - true | false : if true, it will try to create the database during Instantiate process if the database does not exist
func (CloudantDatastoreImpl) IsReady ¶
func (ds CloudantDatastoreImpl) IsReady() bool
func (CloudantDatastoreImpl) Put ¶
func (ds CloudantDatastoreImpl) Put(stub cached_stub.CachedStubInterface, encryptedData []byte) (string, error)
type DbCloudantData ¶
Click to show internal directories.
Click to hide internal directories.