mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupWrapper

type BackupWrapper struct {
	Backup    *backup.Backup
	GetErr    error
	DeleteErr error
}

func (BackupWrapper) DeleteBackup

func (bw BackupWrapper) DeleteBackup(
	ctx context.Context,
	backupID model.StableID,
) error

func (BackupWrapper) DeleteWithModelStoreIDs

func (bw BackupWrapper) DeleteWithModelStoreIDs(
	ctx context.Context,
	ids ...manifest.ID,
) error

func (BackupWrapper) GetBackup

func (bw BackupWrapper) GetBackup(
	ctx context.Context,
	backupID model.StableID,
) (*backup.Backup, error)

func (BackupWrapper) GetBackups

func (bw BackupWrapper) GetBackups(
	ctx context.Context,
	filters ...store.FilterOption,
) ([]*backup.Backup, error)

type ModelStore

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

func NewModelStoreMock

func NewModelStoreMock(b *backup.Backup, err error) *ModelStore

func (*ModelStore) Delete

func (mms *ModelStore) Delete(ctx context.Context, s model.Schema, id model.StableID) error

func (*ModelStore) DeleteWithModelStoreIDs

func (mms *ModelStore) DeleteWithModelStoreIDs(ctx context.Context, ids ...manifest.ID) error

func (*ModelStore) Get

func (mms *ModelStore) Get(
	ctx context.Context,
	s model.Schema,
	id model.StableID,
	data model.Model,
) error

func (*ModelStore) GetIDsForType

func (mms *ModelStore) GetIDsForType(
	ctx context.Context,
	s model.Schema,
	tags map[string]string,
) ([]*model.BaseModel, error)

func (*ModelStore) GetWithModelStoreID

func (mms *ModelStore) GetWithModelStoreID(
	ctx context.Context,
	s model.Schema,
	id manifest.ID,
	data model.Model,
) error

func (*ModelStore) Put

func (mms *ModelStore) Put(ctx context.Context, s model.Schema, m model.Model) error

func (*ModelStore) Update

func (mms *ModelStore) Update(ctx context.Context, s model.Schema, m model.Model) error

Jump to

Keyboard shortcuts

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