serviceunit

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

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

GVK reports the GroupVersionKind this domain handles: ServiceUnit.

func (*ServiceUnitDomain) Handle

func (d *ServiceUnitDomain) Handle(ctx context.Context, cmd command.Command) error

Handle resolves cmd's ServiceUnit contract and ensures its prerequisites, recording conditions and events at each stage. Reconciliation of the workload itself (Stage 3) is not yet wired up.

Jump to

Keyboard shortcuts

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