OnePasswordResourceLoaderBackend

Read-only resources that are fetched from the 1password-cli (op) tool.

To use, please:

  1. ensure the 1password-cli is installed with hermit install op or brew install 1password-cli.

  2. make sure to enable the cli integration in the 1password app: https://developer.1password.com/docs/cli/app-integration/#step-1-turn-on-the-app-integration.

  3. check that the secret being accessed is available. You can get the secret-reference by following: https://developer.1password.com/docs/cli/secret-references/#step-1-get-secret-references

This uses the scheme 1password:. Secret-references from 1password can therefore be used after copy-pasting and replacing "op" like so: "1password://secretRef/goes/here". To use a specific account, add the accountId like so "1password:accountId@//secretRef/goes/here".

Properties

Link copied to clipboard
const val SCHEME: String

Functions

Link copied to clipboard
open fun all(): Set<String>
Link copied to clipboard
open override fun checkPath(path: String)
Link copied to clipboard
open override fun exists(path: String): Boolean
Link copied to clipboard
open override fun list(path: String): List<String>
Link copied to clipboard
open override fun open(path: String): BufferedSource?
Link copied to clipboard
open fun put(path: String, data: ByteString)
Link copied to clipboard
open fun unwatch(path: String)
Link copied to clipboard
open fun watch(path: String, resourceChangedListener: (address: String) -> Unit)