domain

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 1 Imported by: 0

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 State

type State string

State represents the operational state of a resource.

const (
	StateUp   State = "up"
	StateDown State = "down"
)

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

type Tunnel

type Tunnel struct {
	ID string `yaml:"id" json:"id" validate:"required"`
}

func NewTunnel

func NewTunnel(id string) (*Tunnel, error)

func (*Tunnel) GetName

func (t *Tunnel) GetName() string

Jump to

Keyboard shortcuts

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