Documentation ¶
Overview ¶
* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/.
Index ¶
- Variables
- func InitDB(dbType string)
- type BoltStorage
- func (b BoltStorage) BucketExists(bucket string) bool
- func (b BoltStorage) CreateBucket(bucket string) error
- func (b BoltStorage) CreateKey(bucket string, key string, value string, encrypt bool) error
- func (b BoltStorage) DeleteBucket(bucket string) error
- func (b BoltStorage) DeleteKey(bucket string, key string) error
- func (b BoltStorage) OpenDB() (Storage, error)
- func (b BoltStorage) ReadAllKeys(bucket string) (map[string]string, error)
- func (b BoltStorage) ReadKey(bucket string, key string, encrypted bool) (string, error)
- func (b BoltStorage) UpdateKey(bucket string, key string, value string, encrypt bool) error
- type CassandraStorage
- func (c CassandraStorage) BucketExists(bucket string) bool
- func (c CassandraStorage) CreateBucket(bucket string) error
- func (c CassandraStorage) CreateKey(bucket string, key string, value string, encrypt bool) error
- func (c CassandraStorage) DeleteBucket(bucket string) error
- func (c CassandraStorage) DeleteKey(bucket string, key string) error
- func (c CassandraStorage) OpenDB() (Storage, error)
- func (c CassandraStorage) ReadAllKeys(bucket string) (map[string]string, error)
- func (c CassandraStorage) ReadKey(bucket string, key string, encrypted bool) (string, error)
- func (c CassandraStorage) UpdateKey(bucket string, key string, value string, encrypt bool) error
- type EncryptedSecret
- type PostgresStorage
- func (p PostgresStorage) BucketExists(bucket string) bool
- func (p PostgresStorage) CreateBucket(bucket string) error
- func (p PostgresStorage) CreateKey(bucket string, key string, value string, encrypt bool) error
- func (p PostgresStorage) DeleteBucket(bucket string) error
- func (p PostgresStorage) DeleteKey(bucket string, key string) error
- func (p PostgresStorage) OpenDB() (Storage, error)
- func (p PostgresStorage) ReadAllKeys(bucket string) (map[string]string, error)
- func (p PostgresStorage) ReadKey(bucket string, key string, encrypted bool) (string, error)
- func (p PostgresStorage) UpdateKey(bucket string, key string, value string, encrypt bool) error
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var Keyspace string
Functions ¶
Types ¶
type BoltStorage ¶
func (BoltStorage) BucketExists ¶
func (b BoltStorage) BucketExists(bucket string) bool
func (BoltStorage) CreateBucket ¶
func (b BoltStorage) CreateBucket(bucket string) error
func (BoltStorage) DeleteBucket ¶
func (b BoltStorage) DeleteBucket(bucket string) error
func (BoltStorage) OpenDB ¶
func (b BoltStorage) OpenDB() (Storage, error)
func (BoltStorage) ReadAllKeys ¶
func (b BoltStorage) ReadAllKeys(bucket string) (map[string]string, error)
type CassandraStorage ¶
func (CassandraStorage) BucketExists ¶
func (c CassandraStorage) BucketExists(bucket string) bool
func (CassandraStorage) CreateBucket ¶
func (c CassandraStorage) CreateBucket(bucket string) error
func (CassandraStorage) DeleteBucket ¶
func (c CassandraStorage) DeleteBucket(bucket string) error
func (CassandraStorage) DeleteKey ¶
func (c CassandraStorage) DeleteKey(bucket string, key string) error
func (CassandraStorage) ReadAllKeys ¶
func (c CassandraStorage) ReadAllKeys(bucket string) (map[string]string, error)
type EncryptedSecret ¶
type PostgresStorage ¶
Postgres
func (PostgresStorage) BucketExists ¶
func (p PostgresStorage) BucketExists(bucket string) bool
func (PostgresStorage) CreateBucket ¶
func (p PostgresStorage) CreateBucket(bucket string) error
func (PostgresStorage) DeleteBucket ¶
func (p PostgresStorage) DeleteBucket(bucket string) error
func (PostgresStorage) DeleteKey ¶
func (p PostgresStorage) DeleteKey(bucket string, key string) error
func (PostgresStorage) OpenDB ¶
func (p PostgresStorage) OpenDB() (Storage, error)
func (PostgresStorage) ReadAllKeys ¶
func (p PostgresStorage) ReadAllKeys(bucket string) (map[string]string, error)
type Storage ¶
type Storage interface { OpenDB() (Storage, error) CreateBucket(bucket string) error CreateKey(bucket string, key string, value string, encrypt bool) error ReadKey(bucket string, key string, encrypted bool) (string, error) ReadAllKeys(bucket string) (map[string]string, error) UpdateKey(bucket string, key string, value string, encrypt bool) error DeleteKey(bucket string, key string) error DeleteBucket(bucket string) error BucketExists(bucket string) bool }
var Store Storage
Click to show internal directories.
Click to hide internal directories.