bitwarden

package
v0.0.0-...-fa57f66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AES_256_CBC_B64                      suiteKind = 0
	AES_128_CBC_HMAC_SHA256_B64          suiteKind = 1
	AES_256_CBC_HMAC_SHA256_B64          suiteKind = 2
	RSA_2048_OAEP_SHA256_B64             suiteKind = 3
	RSA_2048_OAEP_SHA1_B64               suiteKind = 4
	RSA_2048_OAEP_SHA256_HMAC_SHA256_B64 suiteKind = 5
	RSA_2048_OAEP_SHA1_HMAC_SHA256_B64   suiteKind = 6
)

https://github.com/bitwarden/jslib/blob/master/src/enums/encryptionType.ts nolint:revive

View Source
const (
	Name = "bitwarden"
)

nolint:revive

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EndpointURL     string `json:"endpoint_url" yaml:"endpoint_url"`
	SaveLogin       bool   `json:"save_login" yaml:"save_login"`
	DeviceID        string `json:"device_id" yaml:"device_id"`
	TwoFactorMethod string `json:"two_factor_method" yaml:"two_factor_method"`
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) ConfigName

func (d *Driver) ConfigName() string

func (*Driver) DriverName

func (d *Driver) DriverName() string

func (*Driver) Flush

func (d *Driver) Flush()

Flush previously built in memory cache

func (*Driver) Login

func (d *Driver) Login(requestUserLogin pm.LoginInputCallbackFunc) error

func (*Driver) Subscribe

func (d *Driver) Subscribe(subID string) ([]byte, error)

func (*Driver) Sync

func (d *Driver) Sync(ctx context.Context) (<-chan pm.CredentialUpdate, error)

func (*Driver) Update

func (d *Driver) Update(key string, data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL