Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlitestore

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0, Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package sqlitestore implements the managed directory using embedded SQLite. All SQL and transaction ownership stay here; callers use directory.Store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func Open

func Open(path string) (*Store, error)

Open creates a private database if needed. Schema version mismatches fail startup; opening a database never falls back to an empty in-memory directory.

func (*Store) Audit

func (s *Store) Audit(ctx context.Context, after directory.AuditSequence, limit int) ([]directory.AuditEvent, error)

func (*Store) Bindings

func (s *Store) Bindings(ctx context.Context) (directory.BindingSnapshot, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) CreateGroup

func (s *Store) CreateGroup(ctx context.Context, group directory.Group) (directory.Group, error)

func (*Store) CreateUser

func (s *Store) CreateUser(ctx context.Context, user directory.ManagedUser) (directory.ManagedUser, error)

func (*Store) DeleteGroup

func (s *Store) DeleteGroup(ctx context.Context, id, match string) error

func (*Store) DeleteUser

func (s *Store) DeleteUser(ctx context.Context, id, match string) error

func (*Store) GetGroup

func (s *Store) GetGroup(ctx context.Context, id string) (directory.Group, error)

func (*Store) GetUser

func (s *Store) GetUser(ctx context.Context, id string) (directory.ManagedUser, error)

func (*Store) ListGroups

func (s *Store) ListGroups(ctx context.Context, start, count int) ([]directory.Group, int, error)

func (*Store) ListUserFacts added in v0.36.0

func (s *Store) ListUserFacts(ctx context.Context) ([]directory.User, directory.Revision, error)

func (*Store) ListUsers

func (s *Store) ListUsers(ctx context.Context, start, count int) ([]directory.ManagedUser, int, error)

func (*Store) LookupUser

func (s *Store) LookupUser(ctx context.Context, externalID string) (*directory.User, directory.Revision, error)

func (*Store) Rebind

func (s *Store) Rebind(ctx context.Context, actor, alias, id string, expected uint64, authorizationRevision directory.Revision) error

func (*Store) ReplaceGroup

func (s *Store) ReplaceGroup(ctx context.Context, id string, group directory.Group, match string) (directory.Group, error)

func (*Store) ReplaceUser

func (s *Store) ReplaceUser(ctx context.Context, id string, user directory.ManagedUser, match string) (directory.ManagedUser, error)

Jump to

Keyboard shortcuts

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