Documentation
¶
Index ¶
- type Agent
- type OpAMPProxy
- func (s *OpAMPProxy) GetAgentsByHostname() map[string]uuid.UUID
- func (s *OpAMPProxy) GetConfigurations() map[uuid.UUID]*protobufs.EffectiveConfig
- func (s *OpAMPProxy) GetHealth() map[uuid.UUID]*protobufs.ComponentHealth
- func (s *OpAMPProxy) HasUpdates() <-chan struct{}
- func (s *OpAMPProxy) Start() error
- func (s *OpAMPProxy) Stop(ctx context.Context) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// Agent's instance id. This is an immutable field.
InstanceId uuid.UUID
// Agent's current status.
Status *protobufs.AgentToServer
// contains filtered or unexported fields
}
func (*Agent) GetConfiguration ¶
func (a *Agent) GetConfiguration() *protobufs.EffectiveConfig
func (*Agent) GetHealth ¶
func (a *Agent) GetHealth() *protobufs.ComponentHealth
func (*Agent) GetHostname ¶ added in v0.132.0
func (*Agent) UpdateStatus ¶
func (a *Agent) UpdateStatus(newStatus *protobufs.AgentToServer, response *protobufs.ServerToAgent) bool
type OpAMPProxy ¶
type OpAMPProxy struct {
server.OpAMPServer
// contains filtered or unexported fields
}
func NewOpAMPProxy ¶
func NewOpAMPProxy(l logr.Logger, endpoint string) *OpAMPProxy
func (*OpAMPProxy) GetAgentsByHostname ¶ added in v0.132.0
func (s *OpAMPProxy) GetAgentsByHostname() map[string]uuid.UUID
GetAgentsByHostname implements Server.
func (*OpAMPProxy) GetConfigurations ¶
func (s *OpAMPProxy) GetConfigurations() map[uuid.UUID]*protobufs.EffectiveConfig
GetConfigurations implements Server.
func (*OpAMPProxy) GetHealth ¶
func (s *OpAMPProxy) GetHealth() map[uuid.UUID]*protobufs.ComponentHealth
GetHealth implements Server.
func (*OpAMPProxy) HasUpdates ¶
func (s *OpAMPProxy) HasUpdates() <-chan struct{}
HasUpdates implements Server.
func (*OpAMPProxy) Start ¶
func (s *OpAMPProxy) Start() error
Click to show internal directories.
Click to hide internal directories.