module

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	SetDir(dir string) Command
	AddEnv(key, value string) Command
	ConnectIO() Command
	Exec() ([]byte, error)
}

Command is an interface of executable and configurable command object.

type CommandFactory

type CommandFactory interface {
	Create(nameAndArgs []string) Command
}

CommandFactory is an interface for executing commands.

type CommandGenerator added in v0.2.0

type CommandGenerator interface {
	GenerateCommand(name string) error
	DestroyCommand(name string) error
}

CommandGenerator is an interface to create or destroy user-defined command tempates.

type Generator added in v0.1.3

type Generator interface {
	ProjectGenerator
	ServiceGenerator
	CommandGenerator
}

Generator creates files from templates and given params.

type ProjectGenerator added in v0.2.0

type ProjectGenerator interface {
	GenerateProject(rootDir string, useHead bool) error
}

ProjectGenerator is an interface to build a new project.

type Script added in v0.1.3

type Script interface {
	Name() string
	Build(args ...string) error
	Run(args ...string) error
}

Script represents an user-defined command.

type ScriptLoader added in v0.1.4

type ScriptLoader interface {
	Load(dir string) error
	Get(name string) (script Script, ok bool)
	Names() []string
}

ScriptLoader is a factory object for creating Script objects.

type ServiceGenerationConfig added in v0.2.0

type ServiceGenerationConfig struct {
	ResourceName string
	Methods      []string
	SkipTest     bool
}

ServiceGenerationConfig contains configurations for generating a new service.

type ServiceGenerator added in v0.2.0

type ServiceGenerator interface {
	GenerateService(name string, cfg ServiceGenerationConfig) error
	ScaffoldService(name string, cfg ServiceGenerationConfig) error
	DestroyService(name string) error
}

ServiceGenerator is an interface to create or destroy gRPC services and implementations.

type UI

type UI interface {
	Output(msg string)
	Section(msg string)
	Subsection(msg string)
	Warn(msg string)
	Error(msg string)
	ItemSuccess(msg string)
	ItemSkipped(msg string)
	ItemFailure(msg string)
	Confirm(msg string) (bool, error)
}

UI is an interface for intaracting with the terminal.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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