meta

package
v1.5.10-test Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PkgRevisionRepoLabel = "internal.porch.kpt.dev/repository"
	PkgRevisionFinalizer = "internal.porch.kpt.dev/packagerevision"
)

Variables

This section is empty.

Functions

func NewCrdMetadataStore

func NewCrdMetadataStore(coreClient client.Client) *crdMetadataStore

Types

type MetadataStore

type MetadataStore interface {
	Get(ctx context.Context, namespacedName types.NamespacedName) (metav1.ObjectMeta, error)
	List(ctx context.Context, repo *configapi.Repository) ([]metav1.ObjectMeta, error)
	Create(ctx context.Context, pkgRevMeta metav1.ObjectMeta, repoName string, pkgRevUID types.UID) (metav1.ObjectMeta, error)
	Update(ctx context.Context, pkgRevMeta metav1.ObjectMeta) (metav1.ObjectMeta, error)
	Delete(ctx context.Context, namespacedName types.NamespacedName, clearFinalizer bool) (metav1.ObjectMeta, error)
}

MetadataStore is the store for keeping metadata about PackageRevisions. Typical examples of metadata we want to keep is labels, annotations, owner references, and finalizers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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