Documentation
¶
Overview ¶
Package domain provides core domain models for Moley.
Package domain provides core domain models for Moley.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Target TargetConfig `mapstructure:"target" yaml:"target" json:"target" validate:"required"`
Expose ExposeConfig `mapstructure:"expose" yaml:"expose" json:"expose" validate:"required"`
}
type ExposeConfig ¶
type ExposeConfig struct {
Subdomain string `mapstructure:"subdomain" yaml:"subdomain" json:"subdomain" validate:"required"`
}
type Ingress ¶
type Ingress struct {
Zone string `mapstructure:"zone" yaml:"zone" json:"zone" validate:"required"`
Apps []AppConfig `mapstructure:"apps" yaml:"apps" json:"apps" validate:"required,dive"`
}
func NewDefaultIngress ¶
func NewDefaultIngress() *Ingress
NewDefaultIngress creates a default ingress configuration for examples/templates
type TargetConfig ¶
type TargetConfig struct {
Port int `mapstructure:"port" yaml:"port" json:"port" validate:"required,min=1,max=65535"`
Hostname string `mapstructure:"hostname" yaml:"hostname" json:"hostname" validate:"required"`
}
func (*TargetConfig) GetTargetURL ¶
func (t *TargetConfig) GetTargetURL() string
Click to show internal directories.
Click to hide internal directories.