Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment interface {
// Exec do operation
Exec(class *model.Class, op *model.Operation, args map[string]string) error
}
Environment where all resources deployed
type Executor ¶
type Executor interface {
// Perform an operation of class.
Perform(env string, class *model.Class, operation string, args map[string]string) error
}
Executor perform an operation of class.
type ExecutorImpl ¶
type ExecutorImpl struct {
Standalone Environment `inject:"env_standalone"`
Ssh Environment `inject:"env_ssh"`
Rpc Environment `inject:"env_rpc"`
ClassRep repository.ClassRepository `inject:""`
}
ExecutorImpl select the environment by class and invoke it
type RpcEnvironment ¶
type RpcEnvironment struct {
ScriptRepository repository.ScriptRepository `inject:"script_rep_standalone"`
}
RpcEnvironment where nerv add worker cluster.
type SshEnvironment ¶
type SshEnvironment struct {
ScriptRepository repository.ScriptRepository `inject:"script_rep_standalone"`
}
SshEnvironment where nerv add worker cluster.
type StandaloneEnvironment ¶
type StandaloneEnvironment struct {
ScriptRepository repository.ScriptRepository `inject:"script_rep_standalone"`
}
StandaloneEnvironment where nerv deployed in standalone mode
Click to show internal directories.
Click to hide internal directories.