Documentation ¶
Index ¶
- type MongoKeyStore
- func (m *MongoKeyStore) GetExistingKeys() ([]*utils.UUIDv1, error)
- func (m *MongoKeyStore) GetLatestKeyID() (string, error)
- func (m *MongoKeyStore) Init() error
- func (m *MongoKeyStore) ListKnownClients() ([]string, error)
- func (m *MongoKeyStore) LoadLocationID(keyID string) string
- func (m *MongoKeyStore) ReadKeyPair(keyID string) (*types.LocationData, error)
- func (m *MongoKeyStore) ReadLocation(locationID string) (*types.LocationData, error)
- func (m *MongoKeyStore) RemoveCloudMasterData() error
- func (m *MongoKeyStore) RemoveKeyPair(keyID string) error
- func (m *MongoKeyStore) RemoveLocation(locationID string) error
- func (m *MongoKeyStore) WriteKeyPair(locationData *types.LocationData) error
- func (m *MongoKeyStore) WriteLocation(data types.LocationData) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoKeyStore ¶
type MongoKeyStore struct {
// contains filtered or unexported fields
}
func NewMongoKeyStore ¶
func NewMongoKeyStore(mongoUri string) (*MongoKeyStore, error)
func (*MongoKeyStore) GetExistingKeys ¶
func (m *MongoKeyStore) GetExistingKeys() ([]*utils.UUIDv1, error)
func (*MongoKeyStore) GetLatestKeyID ¶
func (m *MongoKeyStore) GetLatestKeyID() (string, error)
func (*MongoKeyStore) Init ¶
func (m *MongoKeyStore) Init() error
func (*MongoKeyStore) ListKnownClients ¶
func (m *MongoKeyStore) ListKnownClients() ([]string, error)
func (*MongoKeyStore) LoadLocationID ¶
func (m *MongoKeyStore) LoadLocationID(keyID string) string
func (*MongoKeyStore) ReadKeyPair ¶
func (m *MongoKeyStore) ReadKeyPair(keyID string) (*types.LocationData, error)
func (*MongoKeyStore) ReadLocation ¶
func (m *MongoKeyStore) ReadLocation(locationID string) (*types.LocationData, error)
func (*MongoKeyStore) RemoveCloudMasterData ¶
func (m *MongoKeyStore) RemoveCloudMasterData() error
func (*MongoKeyStore) RemoveKeyPair ¶
func (m *MongoKeyStore) RemoveKeyPair(keyID string) error
func (*MongoKeyStore) RemoveLocation ¶
func (m *MongoKeyStore) RemoveLocation(locationID string) error
func (*MongoKeyStore) WriteKeyPair ¶
func (m *MongoKeyStore) WriteKeyPair(locationData *types.LocationData) error
func (*MongoKeyStore) WriteLocation ¶
func (m *MongoKeyStore) WriteLocation(data types.LocationData) error
Click to show internal directories.
Click to hide internal directories.