Documentation ¶
Index ¶
- Variables
- func CheckWorkspace()
- func ConfigureLogger(logLevel string)
- type ImageConfig
- type ImagesConfig
- type LPNConfig
- func (c *LPNConfig) GetDbContainerName(t string) string
- func (c *LPNConfig) GetDbImageName(t string) string
- func (c *LPNConfig) GetDbImageTag(t string) string
- func (c *LPNConfig) GetPortalContainerName(t string) string
- func (c *LPNConfig) GetPortalImageName(t string) string
- func (c *LPNConfig) GetPortalImageTag(t string) string
- type NameConfig
- type NamesConfig
Constants ¶
This section is empty.
Variables ¶
var LpnWorkspace string
LpnWorkspace where the application works
Functions ¶
func CheckWorkspace ¶ added in v0.13.0
func CheckWorkspace()
CheckWorkspace creates this tool workspace under user's home, in a hidden directory named ".lpn"
func ConfigureLogger ¶ added in v0.14.0
func ConfigureLogger(logLevel string)
ConfigureLogger defines two logger settings:
- log format including timestamp (true or false)
- log level, where valid values are TRACE, DEBUG, INFO, WARN, ERROR, FATAL, PANIC
Types ¶
type ImageConfig ¶
ImageConfig image configuration
type ImagesConfig ¶
type ImagesConfig struct { Db map[string]ImageConfig `mapstructure:"db"` Portal map[string]ImageConfig `mapstructure:"portal"` }
ImagesConfig image configuration
type LPNConfig ¶
type LPNConfig struct { Container NamesConfig `mapstructure:"container"` Images ImagesConfig `mapstructure:"images"` }
LPNConfig tool configuration
var LpnConfig *LPNConfig
LpnConfig the tool's configuration, read from tool's workspace
func (*LPNConfig) GetDbContainerName ¶
GetDbContainerName name of the container for databases
func (*LPNConfig) GetDbImageName ¶
GetDbImageName name of the image used to run the portal
func (*LPNConfig) GetDbImageTag ¶
GetDbImageTag name of the image used to run the portal
func (*LPNConfig) GetPortalContainerName ¶
GetPortalContainerName name of the container for portal
func (*LPNConfig) GetPortalImageName ¶
GetPortalImageName name of the image used to run the portal
func (*LPNConfig) GetPortalImageTag ¶
GetPortalImageTag name of the image used to run the portal
type NameConfig ¶
type NameConfig struct { Db map[string]string `mapstructure:"db"` Portal map[string]string `mapstructure:"portal"` }
NameConfig container configuration
type NamesConfig ¶
type NamesConfig struct {
Names NameConfig `mapstructure:"names"`
}
NamesConfig container configuration