Documentation
¶
Overview ¶
Package packages implements the Package resource domain.
The Package domain is responsible for managing the lifecycle of Package resources. It receives commands from the Engine, resolves resource specifications into validated contracts, delegates processing to the application layer, and records reconciliation outcomes through conditions and events.
Index ¶
- type PackageDomain
- func (d *PackageDomain) CanCreate(obj client.Object) bool
- func (d *PackageDomain) CanDelete(obj client.Object) bool
- func (d *PackageDomain) CanUpdate(oldObj, newObj client.Object) bool
- func (d *PackageDomain) GVK() schema.GroupVersionKind
- func (d *PackageDomain) Handle(ctx context.Context, cmd command.Command) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageDomain ¶
type PackageDomain struct {
// contains filtered or unexported fields
}
PackageDomain implements the Package resource domain logic.
func New ¶
func New(packageMediator *pkgMediator.Mediator, packageService *pkgApplication.PackageService, domainCache *cache.Cache, eventRecorder *events.EventRecorder, log logr.Logger, ) *PackageDomain
New returns a new PackageDomain instance configured with the necessary dependencies.
func (*PackageDomain) CanCreate ¶
func (d *PackageDomain) CanCreate(obj client.Object) bool
CanCreate reports whether the supplied object can be processed as a Build create operation.
func (*PackageDomain) CanDelete ¶
func (d *PackageDomain) CanDelete(obj client.Object) bool
CanDelete reports whether the supplied object can be processed as a Package delete operation.
func (*PackageDomain) CanUpdate ¶
func (d *PackageDomain) CanUpdate(oldObj, newObj client.Object) bool
CanUpdate reports whether the supplied update should trigger Build reconciliation by comparing the specifications of the old and new objects.
func (*PackageDomain) GVK ¶
func (d *PackageDomain) GVK() schema.GroupVersionKind
GVK tells the engine which CRD this domain handles.