Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationV1 ¶
type ConfigurationV1 struct { /** * The remote servers to ask when, DPS can not solve from docker or local file, * it will try one by one in order, if no one is specified then 8.8.8.8 is used by default * DO NOT call this variable directly, use GetRemoteDnsServers instead */ RemoteDnsServers [][4]byte `json:"remoteDnsServers"` Envs []EnvV1 `json:"envs"` ActiveEnv string `json:"activeEnv"` /// ---- WebServerPort int `json:"webServerPort"` DnsServerPort int `json:"dnsServerPort"` DefaultDns *bool `json:"defaultDns"` LogLevel string `json:"logLevel"` LogFile string `json:"logFile"` RegisterContainerNames *bool `json:"registerContainerNames"` // hostname to solve host machine IP HostMachineHostname string `json:"hostMachineHostname"` // domain utilized to solve container names Domain string `json:"domain"` }
func ValueOf ¶
func ValueOf(c *localvo.Configuration) *ConfigurationV1
func (*ConfigurationV1) ToConfig ¶
func (c *ConfigurationV1) ToConfig() *localvo.Configuration
type EnvV1 ¶
type EnvV1 struct { Name string `json:"name"` Hostnames []HostnameV1 `json:"hostnames,omitempty"` }
type HostnameV1 ¶
type HostnameV1 struct { Id int64 `json:"id"` Hostname string `json:"hostname"` Ip [4]byte `json:"ip"` // hostname ip when type=A Target string `json:"target"` // target hostname when type=CNAME Ttl int `json:"ttl"` Env string `json:"env,omitempty"` // apenas para o post do rest, Type localvo.EntryType `json:"type"` }
Click to show internal directories.
Click to hide internal directories.