config

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerMap

type ContainerMap struct {
	Registry    string `yaml:"registry,omitempty"`
	Namespace   string `yaml:"namespace,omitempty"`
	Name        string `yaml:"name,omitempty"`
	MainService string `yaml:"main_service,omitempty" env:"MAIN_SERVICE"`
	Shell       string `yaml:"shell,omitempty" env:"MAIN_SHELL"`
	Username    string `yaml:"username,omitempty"`
}

type Deployment

type Deployment struct {
	Host         string `yaml:"host"`
	IsSecure     bool   `yaml:"is_secure"`
	TlsDirectory string `yaml:"tls_directory"`
	Mode         string `yaml:"mode"`
}

type LedoFile

type LedoFile struct {
	Runtime    SupportedRuntime  `yaml:"runtime"`
	Container  ContainerMap      `yaml:"docker"`
	Modes      map[string]string `yaml:"modes"`
	Project    string            `yaml:"project"`
	Deployment []Deployment      `yaml:"deployment,omitempty"`
}

func NewLedoFile

func NewLedoFile(s string) (*LedoFile, error)

type SupportedRuntime

type SupportedRuntime string
const (
	Docker SupportedRuntime = "docker"
	Podman SupportedRuntime = "podman"
)

func (SupportedRuntime) Command

func (e SupportedRuntime) Command() string

func (SupportedRuntime) Compose

func (e SupportedRuntime) Compose() string

Jump to

Keyboard shortcuts

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