Documentation ¶
Index ¶
- type MemoryMetadataStore
- func (m *MemoryMetadataStore) Create(ctx context.Context, pkgRevMeta meta.PackageRevisionMeta, repoName string, ...) (meta.PackageRevisionMeta, error)
- func (m *MemoryMetadataStore) Delete(ctx context.Context, namespacedName types.NamespacedName, _ bool) (meta.PackageRevisionMeta, error)
- func (m *MemoryMetadataStore) Get(ctx context.Context, namespacedName types.NamespacedName) (meta.PackageRevisionMeta, error)
- func (m *MemoryMetadataStore) List(ctx context.Context, repo *configapi.Repository) ([]meta.PackageRevisionMeta, error)
- func (m *MemoryMetadataStore) Update(ctx context.Context, pkgRevMeta meta.PackageRevisionMeta) (meta.PackageRevisionMeta, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryMetadataStore ¶
type MemoryMetadataStore struct {
Metas []meta.PackageRevisionMeta
}
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 meta.PackageRevisionMeta, repoName string, pkgRevUID types.UID) (meta.PackageRevisionMeta, error)
func (*MemoryMetadataStore) Delete ¶
func (m *MemoryMetadataStore) Delete(ctx context.Context, namespacedName types.NamespacedName, _ bool) (meta.PackageRevisionMeta, error)
func (*MemoryMetadataStore) Get ¶
func (m *MemoryMetadataStore) Get(ctx context.Context, namespacedName types.NamespacedName) (meta.PackageRevisionMeta, error)
func (*MemoryMetadataStore) List ¶
func (m *MemoryMetadataStore) List(ctx context.Context, repo *configapi.Repository) ([]meta.PackageRevisionMeta, error)
func (*MemoryMetadataStore) Update ¶
func (m *MemoryMetadataStore) Update(ctx context.Context, pkgRevMeta meta.PackageRevisionMeta) (meta.PackageRevisionMeta, error)
Click to show internal directories.
Click to hide internal directories.