agents

package
v0.1.88 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandshakeConfig = plugin.HandshakeConfig{
	ProtocolVersion:  1,
	MagicCookieKey:   "codefly::agents",
	MagicCookieValue: "0.0.0",
}

Functions

func AddProcessor added in v0.0.55

func AddProcessor(processor wool.LogProcessorWithSource)

func NewAgentLogger

func NewAgentLogger(agent *configurations.Agent) wool.LogProcessor

func NewAgentProvider added in v0.0.55

func NewAgentProvider(ctx context.Context, agent *configurations.Agent) *wool.Provider

func NewAgentServiceLogger added in v0.1.83

func NewAgentServiceLogger(identity *configurations.ServiceIdentity) wool.LogProcessor

func NewServiceAgentProvider added in v0.1.83

func NewServiceAgentProvider(ctx context.Context, identity *configurations.ServiceIdentity) *wool.Provider

func NewServiceLogger

func NewServiceLogger(identity *configurations.ServiceIdentity) wool.LogProcessor

func NewServiceProvider added in v0.0.55

func NewServiceProvider(ctx context.Context, identity *configurations.ServiceIdentity) *wool.Provider

func Register

func Register(agents ...AgentImplementation)

Types

type Agent

type Agent struct {
	Configuration  *configurations.Agent
	Type           string
	Implementation plugin.Plugin
}

type AgentImplementation

type AgentImplementation struct {
	Agent         plugin.Plugin
	Configuration *configurations.Agent
}

type AgentLogger

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

func (*AgentLogger) Process added in v0.0.55

func (w *AgentLogger) Process(log *wool.Log)

type ClientLogHandler added in v0.0.55

type ClientLogHandler struct {
	Receiver hclog.Logger
	// contains filtered or unexported fields
}

A ClientLogHandler handles logs from the Agents and converts them back to wool.Log

func LogHandler added in v0.0.55

func LogHandler() *ClientLogHandler

func NewLogHandler added in v0.0.55

func NewLogHandler() *ClientLogHandler

func (*ClientLogHandler) Write added in v0.0.55

func (h *ClientLogHandler) Write(p []byte) (n int, err error)

type HCLogMessageIn added in v0.0.55

type HCLogMessageIn struct {
	Level     string    `json:"@level"`
	Timestamp time.Time `json:"@timestamp"`
	Message   string    `json:"@message"`
	Module    string    `json:"@module"`
}

type HCLogMessageOut added in v0.0.55

type HCLogMessageOut struct {
	Log    *wool.Log        `json:"log"`
	Source *wool.Identifier `json:"identifier"`
}

Directories

Path Synopsis
helpers
api

Jump to

Keyboard shortcuts

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