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