Documentation
¶
Overview ¶
Package build implements the Build resource domain.
The Build domain is responsible for managing the lifecycle of Build 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 BuildDomain
- func (d *BuildDomain) CanCreate(obj client.Object) bool
- func (d *BuildDomain) CanDelete(obj client.Object) bool
- func (d *BuildDomain) CanUpdate(oldObj, newObj client.Object) bool
- func (d *BuildDomain) GVK() schema.GroupVersionKind
- func (d *BuildDomain) 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 BuildDomain ¶
type BuildDomain struct {
// contains filtered or unexported fields
}
BuildDomain implements the Build resource domain logic.
func New ¶
func New(buildMediator *build.Mediator, buildService *application.BuildService, domainCache *cache.Cache, eventRecorder *events.EventRecorder, log logr.Logger) *BuildDomain
New returns a new BuildDomain instance configured with the necessary dependencies.
func (*BuildDomain) CanCreate ¶
func (d *BuildDomain) CanCreate(obj client.Object) bool
CanCreate reports whether the supplied object can be processed as a Build create operation.
func (*BuildDomain) CanDelete ¶
func (d *BuildDomain) CanDelete(obj client.Object) bool
CanDelete reports whether the supplied object can be processed as a Build delete operation.
func (*BuildDomain) CanUpdate ¶
func (d *BuildDomain) 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 (*BuildDomain) GVK ¶
func (d *BuildDomain) GVK() schema.GroupVersionKind
GVK tells the engine which CRD this domain handles.