Documentation
¶
Index ¶
- func NewExecutor(opt Options) (exe execute.Executor, err error)
- func Process(agentConfig *rsc.AgentConfiguration, name, agentIP string, ...) error
- func Validate(config *rsc.AgentConfiguration) error
- type AgentConfigExecutor
- type Options
- type RemoteExecutor
- func (exe *RemoteExecutor) Execute() error
- func (exe *RemoteExecutor) GetAgentUUID() string
- func (exe *RemoteExecutor) GetConfiguration() *rsc.AgentConfiguration
- func (exe *RemoteExecutor) GetName() string
- func (exe *RemoteExecutor) GetNamespace() string
- func (exe *RemoteExecutor) SetHost(host string)
- func (exe *RemoteExecutor) SetTags(tags *[]string)
- type RouterMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Process ¶
func Process(agentConfig *rsc.AgentConfiguration, name, agentIP string, otherAgents []client.AgentInfo) error
Process update the config to translate agent names into uuids, and sets the host value if needed
func Validate ¶
func Validate(config *rsc.AgentConfiguration) error
Types ¶
type AgentConfigExecutor ¶
type RemoteExecutor ¶
type RemoteExecutor struct {
// contains filtered or unexported fields
}
func NewRemoteExecutor ¶
func NewRemoteExecutor(name string, conf *rsc.AgentConfiguration, namespace string, tags *[]string) *RemoteExecutor
func (*RemoteExecutor) Execute ¶
func (exe *RemoteExecutor) Execute() error
func (*RemoteExecutor) GetAgentUUID ¶
func (exe *RemoteExecutor) GetAgentUUID() string
func (*RemoteExecutor) GetConfiguration ¶
func (exe *RemoteExecutor) GetConfiguration() *rsc.AgentConfiguration
func (*RemoteExecutor) GetName ¶
func (exe *RemoteExecutor) GetName() string
func (*RemoteExecutor) GetNamespace ¶
func (exe *RemoteExecutor) GetNamespace() string
func (*RemoteExecutor) SetHost ¶
func (exe *RemoteExecutor) SetHost(host string)
func (*RemoteExecutor) SetTags ¶
func (exe *RemoteExecutor) SetTags(tags *[]string)
type RouterMode ¶
type RouterMode string
const ( EdgeRouter RouterMode = "edge" InteriorRouter RouterMode = "interior" NoneRouter RouterMode = "none" )
Click to show internal directories.
Click to hide internal directories.