Moves the `domain` and `ports` packages from `internal/core` to `internal`. This refactoring simplifies the directory structure by elevating the core architectural concepts of domain and ports to the top level of the `internal` directory. The `core` directory is now removed as its only purpose was to house these two packages. All import paths across the project have been updated to reflect this change.
20 lines
865 B
Go
20 lines
865 B
Go
package driven
|
|
|
|
import (
|
|
"context"
|
|
|
|
"edp.buildth.ing/DevFW-CICD/edge-connect-client/internal/domain"
|
|
)
|
|
|
|
// OrganizationRepository defines the port for interacting with organization data storage.
|
|
// This interface provides a technology-agnostic way for the core application to manage organizations.
|
|
type OrganizationRepository interface {
|
|
// CreateOrganization persists a new organization.
|
|
CreateOrganization(ctx context.Context, org *domain.Organization) error
|
|
// ShowOrganization retrieves a single organization by its name.
|
|
ShowOrganization(ctx context.Context, name string) (*domain.Organization, error)
|
|
// UpdateOrganization updates an existing organization.
|
|
UpdateOrganization(ctx context.Context, org *domain.Organization) error
|
|
// DeleteOrganization removes an organization by its name.
|
|
DeleteOrganization(ctx context.Context, name string) error
|
|
}
|