pkg

package
v0.0.0-...-56979a3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 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 Package

type Package struct {

	// installed revisions of this package
	Revisions sets.Set[pkgid.PackageID]
	// packages that have a dependency with this package, we store per revision
	// now we can argue if this is right but it is probably the easiest and
	// we can optimize cornercases afterwards
	OwnerRefs sets.Set[pkgid.PackageID]
	// contains filtered or unexported fields
}

func NewPackage

func NewPackage() *Package

func (*Package) AddOwnerRef

func (r *Package) AddOwnerRef(pkgID *pkgid.PackageID)

func (*Package) AddPackageRevision

func (r *Package) AddPackageRevision(pkgID *pkgid.PackageID)

func (*Package) DeleteOwnerRef

func (r *Package) DeleteOwnerRef(pkgID *pkgid.PackageID)

func (*Package) DeletePackageRevision

func (r *Package) DeletePackageRevision(pkgID *pkgid.PackageID)

func (*Package) ListOwnerrefs

func (r *Package) ListOwnerrefs(pkgID *pkgid.PackageID) []pkgid.PackageID

func (*Package) ListPackageRevisions

func (r *Package) ListPackageRevisions(pkgID *pkgid.PackageID) []pkgid.PackageID

Jump to

Keyboard shortcuts

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