agent

package
v0.0.0-...-d7ecad2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(log logging.Logger, cfg *Config, oryClient oryclient.OryClient) (*Agent, error)

func (*Agent) Close

func (a *Agent) Close()

func (*Agent) GetCaptenPluginsClient

func (a *Agent) GetCaptenPluginsClient() captenpluginspb.CaptenPluginsClient

func (*Agent) GetClient

func (a *Agent) GetClient() agentpb.AgentClient

func (*Agent) GetClusterPluginsClient

func (a *Agent) GetClusterPluginsClient() clusterpluginspb.ClusterPluginsClient

type AgentHandler

type AgentHandler struct {
	// contains filtered or unexported fields
}

func NewAgentHandler

func NewAgentHandler(log logging.Logger, cfg config.ServiceConfig,
	serverStore store.ServerStore, oryClient oryclient.OryClient) *AgentHandler

func (*AgentHandler) AddAgent

func (s *AgentHandler) AddAgent(clusterID string, agentCfg *Config) error

func (*AgentHandler) Close

func (s *AgentHandler) Close()

func (*AgentHandler) GetAgent

func (s *AgentHandler) GetAgent(orgId, clusterID string) (*Agent, error)

func (*AgentHandler) GetAgentClusterDetail

func (s *AgentHandler) GetAgentClusterDetail(clusterID string) *Config

func (*AgentHandler) RemoveAgent

func (s *AgentHandler) RemoveAgent(clusterID string)

func (*AgentHandler) UpdateAgent

func (s *AgentHandler) UpdateAgent(clusterID string, agentCfg *Config) error

type Config

type Config struct {
	ClusterName string
	Address     string
	CaCert      string
	Cert        string
	Key         string
	ServicName  string
	AuthEnabled bool
}

Jump to

Keyboard shortcuts

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