fake

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryMetadataStore

type MemoryMetadataStore struct {
	Metas []metav1.ObjectMeta
}

MemoryMetadataStore is an in-memory implementation of the MetadataStore interface. It means metadata about packagerevisions will be stored in memory, which is useful for testing.

func (*MemoryMetadataStore) Create

func (m *MemoryMetadataStore) Create(ctx context.Context, pkgRevMeta metav1.ObjectMeta, repoName string, pkgRevUID types.UID) (metav1.ObjectMeta, error)

func (*MemoryMetadataStore) Delete

func (m *MemoryMetadataStore) Delete(ctx context.Context, namespacedName types.NamespacedName, _ bool) (metav1.ObjectMeta, error)

func (*MemoryMetadataStore) Get

func (*MemoryMetadataStore) List

func (*MemoryMetadataStore) Update

Jump to

Keyboard shortcuts

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