Liking cljdoc? Tell your friends :D

chromex.app.users-private

clj

Use the chrome.usersPrivate API to manage users.

  • available since Chrome master
Use the chrome.usersPrivate API to manage users.

* available since Chrome master
raw docstring

add-whitelisted-userclj/smacro

(add-whitelisted-user email)

Adds a new user with the given email to the whitelist. The callback is called with true if the user was added succesfully, or with false if not (e.g. because the user was already present, or the current user isn't the owner).

|email| - ?

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [success] where:

|success| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Adds a new user with the given email to the whitelist. The callback is called with true if the user was added succesfully,
or with false if not (e.g. because the user was already present, or the current user isn't the owner).

  |email| - ?

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [success] where:

  |success| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

add-whitelisted-user*cljs

(add-whitelisted-user* config email)
source

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

get-current-userclj/smacro

(get-current-user)

Returns the current user.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [user] where:

|user| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Returns the current user.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [user] where:

  |user| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

get-current-user*cljs

(get-current-user* config)
source

get-login-statusclj/smacro

(get-login-status)

Get login status.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [status] where:

|status| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Get login status.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [status] where:

  |status| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

get-login-status*cljs

(get-login-status* config)
source

get-whitelisted-usersclj/smacro

(get-whitelisted-users)

Gets a list of the currently whitelisted users.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [users] where:

|users| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Gets a list of the currently whitelisted users.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [users] where:

  |users| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

get-whitelisted-users*cljs

(get-whitelisted-users* config)
source

is-whitelist-managedclj/smacro

(is-whitelist-managed)

Whether the whitelist is managed by enterprise.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [managed] where:

|managed| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Whether the whitelist is managed by enterprise.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [managed] where:

  |managed| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

is-whitelist-managed*cljs

(is-whitelist-managed* config)
source

remove-whitelisted-userclj/smacro

(remove-whitelisted-user email)

Removes the user with the given email from the whitelist. The callback is called with true if the user was removed succesfully, or with false if not (e.g. because the user was not already present, or the current user isn't the owner).

|email| - ?

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [success] where:

|success| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Removes the user with the given email from the whitelist. The callback is called with true if the user was removed
succesfully, or with false if not (e.g. because the user was not already present, or the current user isn't the owner).

  |email| - ?

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [success] where:

  |success| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

remove-whitelisted-user*cljs

(remove-whitelisted-user* config email)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.app.users-private namespace.

Taps all valid non-deprecated events in chromex.app.users-private namespace.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close