common

package
v0.0.0-...-ee2a6a4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TIMEOUT          time.Duration
	POLLING_INTERVAL time.Duration
)

Functions

func CreateBmpClient

func CreateBmpClient() (clients.BmpClient, error)

func CreateConfig

func CreateConfig(pathToConfig string) (config.ConfigInfo, error)

func CreateDefaultConfig

func CreateDefaultConfig() (config.ConfigInfo, error)

func CreateTarball

func CreateTarball(tarballFilePath string, filePaths []string) error

func ReadJsonTestFixtures

func ReadJsonTestFixtures(rootPath, packageName, fileName string) ([]byte, error)

Types

type Options

type Options struct {
	CommandFlag string

	HelpFlag     bool
	LongHelpFlag bool

	DryRunFlag bool

	PublicFlag bool

	NameFlag       string
	NoteFlag       string
	PublicNameFlag string
	PublicNoteFlag string
	OsRefCodeFlag  string
	UriFlag        string

	LightStemcellTypeFlag string
	LightStemcellPathFlag string

	VersionFlag              string
	StemcellInfoFilenameFlag string
	InfrastructureFlag       string
	HypervisorFlag           string
	OsNameFlag               string

	StemcellFormatsFlag string
}

type Printer

type Printer interface {
	Println(args ...interface{}) (int, error)
	Printf(msg string, args ...interface{}) (int, error)
	PrintTable(table *tablewriter.Table) (int, error)
	PrintfInfo(msg string, args ...interface{}) (int, error)
	PrintlnInfo(args ...interface{}) (int, error)
	Scanln(args ...interface{}) (int, error)
	NewTableWriter() *tablewriter.Table
}

func NewDefaultPrinter

func NewDefaultPrinter(ui UI, verbose bool) Printer

type UI

type UI interface {
	Printer
}

func NewConsoleUi

func NewConsoleUi(verbose bool) UI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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