Documentation
¶
Overview ¶
Package serviceunit implements the ServiceUnit resource domain.
The ServiceUnit domain is responsible for managing the lifecycle of ServiceUnit 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 ServiceUnitDomain
- func (d *ServiceUnitDomain) CanCreate(obj client.Object) bool
- func (d *ServiceUnitDomain) CanDelete(obj client.Object) bool
- func (d *ServiceUnitDomain) CanUpdate(oldObj, newObj client.Object) bool
- func (d *ServiceUnitDomain) GVK() schema.GroupVersionKind
- func (d *ServiceUnitDomain) 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 ServiceUnitDomain ¶
type ServiceUnitDomain struct {
// contains filtered or unexported fields
}
ServiceUnitDomain implements the ServiceUnit resource domain.
func New ¶
func New(mediator *serviceunit.Mediator, domainCache *cache.Cache, eventRecorder *events.EventRecorder, log logr.Logger) *ServiceUnitDomain
New constructs a ServiceUnitDomain.
func (*ServiceUnitDomain) CanCreate ¶
func (d *ServiceUnitDomain) CanCreate(obj client.Object) bool
CanCreate reports whether obj is a ServiceUnit.
func (*ServiceUnitDomain) CanDelete ¶
func (d *ServiceUnitDomain) CanDelete(obj client.Object) bool
CanDelete reports whether obj is a ServiceUnit.
func (*ServiceUnitDomain) CanUpdate ¶
func (d *ServiceUnitDomain) CanUpdate(oldObj, newObj client.Object) bool
CanUpdate reports whether oldObj and newObj are both ServiceUnits whose specs differ.
func (*ServiceUnitDomain) GVK ¶
func (d *ServiceUnitDomain) GVK() schema.GroupVersionKind
GVK reports the GroupVersionKind this domain handles: ServiceUnit.