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.
31 lines
774 B
Go
31 lines
774 B
Go
package domain
|
|
|
|
// AppKey uniquely identifies an application
|
|
type AppKey struct {
|
|
Organization string
|
|
Name string
|
|
Version string
|
|
}
|
|
|
|
// App represents an application definition
|
|
type App struct {
|
|
Key AppKey
|
|
Deployment string
|
|
ImageType string
|
|
ImagePath string
|
|
AllowServerless bool
|
|
DefaultFlavor Flavor
|
|
ServerlessConfig interface{}
|
|
DeploymentGenerator string
|
|
DeploymentManifest string
|
|
RequiredOutboundConnections []SecurityRule
|
|
Fields []string
|
|
}
|
|
|
|
// SecurityRule defines network access rules
|
|
type SecurityRule struct {
|
|
PortRangeMax int
|
|
PortRangeMin int
|
|
Protocol string
|
|
RemoteCIDR string
|
|
}
|