repository

package
v0.0.0-...-1cde5fb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListOption

type ListOption struct {
	PackageID *pkgid.PackageID
}

type Repository

type Repository interface {
	// used for discovery
	ListPackageRevisions(ctx context.Context, opts *ListOption) ([]*pkgv1alpha1.PackageRevision, error)
	// UpsertPackageRevision updates the package revision in the revision backend
	UpsertPackageRevision(ctx context.Context, pkgRev *pkgv1alpha1.PackageRevision, resources map[string]string) error
	// DeletePackageRevision deletes the package revision in the revision backend
	DeletePackageRevision(ctx context.Context, pkgRev *pkgv1alpha1.PackageRevision) error
	// used for List or Gte PackageRevisionResources
	GetResources(ctx context.Context, pr *pkgv1alpha1.PackageRevision) (map[string]string, error)
	// ensure packageRevision ensure the Packagerevision tag exists on the package revision
	EnsurePackageRevision(ctx context.Context, pkgRev *pkgv1alpha1.PackageRevision) error
}

Jump to

Keyboard shortcuts

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