internal

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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:

  1. log format including timestamp (true or false)
  2. log level, where valid values are TRACE, DEBUG, INFO, WARN, ERROR, FATAL, PANIC

Types

type ImageConfig

type ImageConfig struct {
	Image string `yaml:"image"`
	Tag   string `yaml:"tag"`
}

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 NewConfig

func NewConfig(workspace string) *LPNConfig

NewConfig returns a new configuration

func (*LPNConfig) GetDbContainerName

func (c *LPNConfig) GetDbContainerName(t string) string

GetDbContainerName name of the container for databases

func (*LPNConfig) GetDbImageName

func (c *LPNConfig) GetDbImageName(t string) string

GetDbImageName name of the image used to run the portal

func (*LPNConfig) GetDbImageTag

func (c *LPNConfig) GetDbImageTag(t string) string

GetDbImageTag name of the image used to run the portal

func (*LPNConfig) GetPortalContainerName

func (c *LPNConfig) GetPortalContainerName(t string) string

GetPortalContainerName name of the container for portal

func (*LPNConfig) GetPortalImageName

func (c *LPNConfig) GetPortalImageName(t string) string

GetPortalImageName name of the image used to run the portal

func (*LPNConfig) GetPortalImageTag

func (c *LPNConfig) GetPortalImageTag(t string) string

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

Jump to

Keyboard shortcuts

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