mongo

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package mongo provides a MongoDB implementation of store.Store using grove ORM.

Index

Constants

This section is empty.

Variables

View Source
var Migrations = migrate.NewGroup("keysmith")

Migrations is the grove migration group for the Keysmith mongo store.

Functions

This section is empty.

Types

type Store

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

Store implements store.Store using MongoDB via Grove ORM.

func New

func New(db *grove.DB) *Store

New creates a new MongoDB store backed by Grove ORM.

func (*Store) Close

func (s *Store) Close() error

Close closes the database connection.

func (*Store) DB

func (s *Store) DB() *grove.DB

DB returns the underlying grove database for direct access.

func (*Store) Keys

func (s *Store) Keys() key.Store

Keys returns the key store.

func (*Store) Migrate

func (s *Store) Migrate(ctx context.Context) error

Migrate creates indexes for all keysmith collections.

func (*Store) Ping

func (s *Store) Ping(ctx context.Context) error

Ping checks database connectivity.

func (*Store) Policies

func (s *Store) Policies() policy.Store

Policies returns the policy store.

func (*Store) Rotations

func (s *Store) Rotations() rotation.Store

Rotations returns the rotation store.

func (*Store) Scopes

func (s *Store) Scopes() scope.Store

Scopes returns the scope store.

func (*Store) Usages

func (s *Store) Usages() usage.Store

Usages returns the usage store.

Jump to

Keyboard shortcuts

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