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 ¶
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
ProjectGenerator is an interface to build a new project.
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
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.
Click to show internal directories.
Click to hide internal directories.