mock

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock contains mocks for authN kvdb interfaces

  • Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyDataStorage

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

KeyDataStorage is a mock in-memory AuthStorageDriver for tests.

func NewKeyDataStorage

func NewKeyDataStorage(rawMeta json.RawMessage, persistErr error) *KeyDataStorage

func (*KeyDataStorage) LoadKeyData

func (m *KeyDataStorage) LoadKeyData() (*kvdb.KeyData, error)

func (*KeyDataStorage) PersistKeyData

func (m *KeyDataStorage) PersistKeyData(meta *kvdb.KeyData) error

Jump to

Keyboard shortcuts

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