deployagentconfig

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: EPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor(opt Options) (exe execute.Executor, err error)

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 AgentConfigExecutor interface {
	execute.Executor
	GetAgentUUID() string
	SetHost(string)
	SetTags(*[]string)
	GetConfiguration() *rsc.AgentConfiguration
	GetNamespace() string
}

type Options

type Options struct {
	Namespace string
	Yaml      []byte
	Name      string
	Tags      *[]string
}

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"
)

Jump to

Keyboard shortcuts

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