mongo

package
v0.0.0-...-5238b66 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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