meta

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 2 modules, 6 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

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) (PackageRevisionMeta, error)
	List(ctx context.Context, repo *configapi.Repository) ([]PackageRevisionMeta, error)
	Create(ctx context.Context, pkgRevMeta PackageRevisionMeta, repoName string, pkgRevUID types.UID) (PackageRevisionMeta, error)
	Update(ctx context.Context, pkgRevMeta PackageRevisionMeta) (PackageRevisionMeta, error)
	Delete(ctx context.Context, namespacedName types.NamespacedName, clearFinalizer bool) (PackageRevisionMeta, 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.

type PackageRevisionMeta

type PackageRevisionMeta struct {
	Name              string
	Namespace         string
	Labels            map[string]string
	Annotations       map[string]string
	Finalizers        []string
	OwnerReferences   []metav1.OwnerReference
	DeletionTimestamp *metav1.Time
}

PackageRevisionMeta contains metadata about a specific PackageRevision. The PackageRevision is identified by the name and namespace.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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