storagev1

package
v0.0.0-...-9109040 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

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 (*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"`
}

Jump to

Keyboard shortcuts

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