config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "dodo"

	ConfKeyConfigFiles = "config-files"
	ConfKeyLogLevel    = "log-level"
	ConfKeyLogFile     = "log-file"
	ConfKeyAppDir      = "app-dir"

	DefaultLogLevel = "INFO"
	DefaultAppDir   = "/var/lib/dodo"
)

Variables

This section is empty.

Functions

func Configure

func Configure()

func GetAppDir

func GetAppDir() string

func GetConfigFiles added in v0.4.2

func GetConfigFiles() []string

func GetLoggerOptions

func GetLoggerOptions() *log.LoggerOptions

func GetPluginDir

func GetPluginDir() string

func GetPluginLoggerOptions

func GetPluginLoggerOptions() *log.LoggerOptions

func LogLevel

func LogLevel() log.Level

func LogOutput

func LogOutput() io.Writer

func ParseBuildArgument

func ParseBuildArgument(spec string) (*api.BuildArgument, error)

func ParseDeviceMapping

func ParseDeviceMapping(spec string) (*api.DeviceMapping, error)

func ParseEnvironmentVariable

func ParseEnvironmentVariable(spec string) (*api.EnvironmentVariable, error)

func ParsePortBinding

func ParsePortBinding(spec string) (*api.PortBinding, error)

func ParseSSHAgent

func ParseSSHAgent(spec string) (*api.SshAgent, error)

func ParseVolumeMount

func ParseVolumeMount(spec string) (*api.VolumeMount, error)

Types

type FormatError

type FormatError string
const (
	ErrArgumentFormat    FormatError = "invalid argument format"
	ErrDeviceFormat      FormatError = "invalid device format"
	ErrVolumeFormat      FormatError = "invalid volume format"
	ErrEnvironmentFormat FormatError = "invalid environment format"
	ErrPortFormat        FormatError = "invalid publish format"
	ErrSSHAgentFormat    FormatError = "invalid ssh agent format"
)

func (FormatError) Error

func (e FormatError) Error() string

Jump to

Keyboard shortcuts

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