Liking cljdoc? Tell your friends :D

chromex.ext.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-userclj/smacro

(add-user email)

Adds a new user with the given email to the user list. 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 user list. 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-user*cljs

(add-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-usersclj/smacro

(get-users)

Gets a list of known 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 known 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-users*cljs

(get-users* config)
source

is-user-in-listclj/smacro

(is-user-in-list email)

Checks to see if the user is already present in the user list.

|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 [found] where:

|found| - ?

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.

Checks to see if the user is already present in the user list.

  |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 [found] where:

  |found| - ?

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-user-in-list*cljs

(is-user-in-list* config email)
source

is-user-list-managedclj/smacro

(is-user-list-managed)

Whether the user list 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 user list 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-user-list-managed*cljs

(is-user-list-managed* config)
source

remove-userclj/smacro

(remove-user email)

Removes the user with the given email from the user list. 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 user list. 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-user*cljs

(remove-user* config email)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

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

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

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

× close