ObjectsMeta

ObjectsMeta

Define and access to all metas of objects

Available methods : create(), create_with_result(), update(), update_with_result(), delete(), delete_with_result(), all(), has(), get()

Constructor

new ObjectsMeta(context)

Objects Meta constructor

Parameters:
Name Type Description
context OVHStorage

OVHObjectStorage context

Source:

Methods

(async) all() → {Promise.<Object>}

Get all object metas

Source:

(async) create(path, key, value) → {Promise.<Object>}

Create a new object meta

Parameters:
Name Type Description
path String

Path of file with container

key String

Name of meta

value String

Value of meta

Source:

(async) create_with_result(path, key, value) → {Promise.<Boolean>}

Create a new object meta and return boolean as result

Parameters:
Name Type Description
path String

Path of file with container

key String

Name of meta

value String

Value of meta

Source:

(async) delete(path, key) → {Promise.<Object>}

Delete object meta

Parameters:
Name Type Description
path String

Path of file with container

key String

Name of meta

Source:

(async) delete_with_result(path, key) → {Promise.<Boolean>}

Delete object meta and return boolean as result

Parameters:
Name Type Description
path String

Path of file with container

key String

Name of meta

Source:

(async) get(path, key) → {Promise.<string>}

Get object meta

Parameters:
Name Type Description
path String

Path of file with container

key String

Name of meta

Source:

(async) has(path, key) → {Promise.<Boolean>}

Object has meta

Parameters:
Name Type Description
path String

Path of container

key String

Name of meta

Source:

(async) update(path, key, value) → {Promise.<Object>}

Update existing object meta

Parameters:
Name Type Description
path String

Path of file with container

key String

Name of meta

value String

Value of meta

Source:

(async) update_with_result(path, key, value) → {Promise.<Boolean>}

Update existing object meta and return boolean as result

Parameters:
Name Type Description
path String

Path of file with container

key String

Name of meta

value String

Value of meta

Source: