Documentation ¶
Overview ¶
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Index ¶
- Constants
- Variables
- type BoltKS
- func (ks *BoltKS) CompleteInit(*config.KeyStoreConfig) error
- func (ks *BoltKS) Create(alias string, key []byte) error
- func (ks *BoltKS) Delete(alias string) error
- func (ks *BoltKS) Init(cfg *config.KeyStoreConfig) error
- func (ks *BoltKS) Initialized() bool
- func (ks *BoltKS) Location() string
- func (ks *BoltKS) NewInstance() KeyStoreAdapter
- func (ks *BoltKS) Read(alias string) ([]byte, error)
- func (ks *BoltKS) Type() string
- type InMemoryKS
- func (ks *InMemoryKS) CompleteInit(*config.KeyStoreConfig) error
- func (ks *InMemoryKS) Create(alias string, key []byte) error
- func (ks *InMemoryKS) Delete(alias string) error
- func (ks *InMemoryKS) Init(cfg *config.KeyStoreConfig) error
- func (ks *InMemoryKS) Initialized() bool
- func (ks *InMemoryKS) Location() string
- func (ks *InMemoryKS) NewInstance() KeyStoreAdapter
- func (ks *InMemoryKS) Read(alias string) ([]byte, error)
- func (ks *InMemoryKS) Type() string
- type KeyStoreAdapter
- type VirtualKeyStore
- func (vks *VirtualKeyStore) CompleteInit(*config.Config) error
- func (vks *VirtualKeyStore) Create(alias string, key []byte) error
- func (vks *VirtualKeyStore) Delete(alias string) error
- func (vks *VirtualKeyStore) Init(cfg *config.Config) error
- func (vks *VirtualKeyStore) Initialized() bool
- func (vks *VirtualKeyStore) Read(alias string) ([]byte, error)
Constants ¶
const ( PropertyNameKeyStore = "keyStore" PropertyNameKeyStoreType = "type" )
Variables ¶
var KeyStoreRegistrar *keyStoreRegistrar = newRegistrar()
singleton registrar for key store types
Functions ¶
This section is empty.
Types ¶
type BoltKS ¶
type BoltKS struct {
// contains filtered or unexported fields
}
An implementation of a keystore using Bolt (https://github.com/boltdb/bolt)
func (*BoltKS) CompleteInit ¶
func (ks *BoltKS) CompleteInit(*config.KeyStoreConfig) error
func (*BoltKS) Initialized ¶
func (*BoltKS) NewInstance ¶
func (ks *BoltKS) NewInstance() KeyStoreAdapter
type InMemoryKS ¶
type InMemoryKS struct {
// contains filtered or unexported fields
}
An implementation of a keystore in-memory. Useful for testing. Not recommended for production!!
func NewInMemoryKS ¶
func NewInMemoryKS() *InMemoryKS
func (*InMemoryKS) CompleteInit ¶
func (ks *InMemoryKS) CompleteInit(*config.KeyStoreConfig) error
func (*InMemoryKS) Delete ¶
func (ks *InMemoryKS) Delete(alias string) error
func (*InMemoryKS) Init ¶
func (ks *InMemoryKS) Init(cfg *config.KeyStoreConfig) error
func (*InMemoryKS) Initialized ¶
func (ks *InMemoryKS) Initialized() bool
func (*InMemoryKS) Location ¶
func (ks *InMemoryKS) Location() string
func (*InMemoryKS) NewInstance ¶
func (ks *InMemoryKS) NewInstance() KeyStoreAdapter
func (*InMemoryKS) Type ¶
func (ks *InMemoryKS) Type() string
type KeyStoreAdapter ¶
type VirtualKeyStore ¶
type VirtualKeyStore struct {
// contains filtered or unexported fields
}
An implementation of a virtual key store over a collection of key stores using Polynomial Secret Sharing.
func GetVirtualKeyStoreFromConfig ¶
func GetVirtualKeyStoreFromConfig(cfg *config.Config) (*VirtualKeyStore, error)
func NewVirtualKeyStore ¶
func NewVirtualKeyStore() *VirtualKeyStore
func (*VirtualKeyStore) CompleteInit ¶
func (vks *VirtualKeyStore) CompleteInit(*config.Config) error
func (*VirtualKeyStore) Delete ¶
func (vks *VirtualKeyStore) Delete(alias string) error
func (*VirtualKeyStore) Initialized ¶
func (vks *VirtualKeyStore) Initialized() bool