app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MODULE = "asb"

Variables

View Source
var Version = "v0.1.0"

Functions

func ArgsUsage

func ArgsUsage()

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func CreateApp

func CreateApp() App

func (*App) Start

func (a *App) Start()

type Args

type Args struct {
	ConfigFile string `short:"c" long:"config" description:"Config File" default:"/etc/ansible-service-broker/config.yaml"`
	ScriptsDir string `short:"s" long:"scripts" description:"Scripts Dir" default:"/usr/local/ansible-service-broker/bin"`
	Version    bool   `short:"v" long:"version" description:"Print version information"`
}

func CreateArgs

func CreateArgs() (Args, error)

type Config

type Config struct {
	Registry   ansibleapp.RegistryConfig
	Dao        dao.Config
	Log        LogConfig
	Openshift  ansibleapp.ClusterConfig
	ConfigFile string
}

func CreateConfig

func CreateConfig(configFile string) (Config, error)

type Log

type Log struct {
	*logging.Logger
	// contains filtered or unexported fields
}

func NewLog

func NewLog(config LogConfig) (*Log, error)

TODO: Consider no output?

type LogConfig

type LogConfig struct {
	LogFile string
	Stdout  bool
	Level   string
	Color   bool
}

Jump to

Keyboard shortcuts

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