Documentation ¶
Index ¶
- Variables
- func AddProcessor(processor wool.LogProcessorWithSource)
- func LogToConsole()
- func NewAgentLogger(agent *resources.Agent) wool.LogProcessor
- func NewAgentProvider(ctx context.Context, agent *resources.Agent) *wool.Provider
- func NewAgentServiceLogger(identity *resources.ServiceIdentity) wool.LogProcessor
- func NewServiceAgentProvider(ctx context.Context, identity *resources.ServiceIdentity) *wool.Provider
- func NewServiceLogger(identity *resources.ServiceIdentity) wool.LogProcessor
- func NewServiceProvider(ctx context.Context, identity *resources.ServiceIdentity) *wool.Provider
- func Register(agents ...AgentImplementation)
- type Agent
- type AgentImplementation
- type AgentLogger
- type ClientLogHandler
- type HCLogMessageIn
- type HCLogMessageOut
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 LogToConsole ¶ added in v0.1.89
func LogToConsole()
func NewAgentLogger ¶
func NewAgentLogger(agent *resources.Agent) wool.LogProcessor
func NewAgentProvider ¶ added in v0.0.55
func NewAgentServiceLogger ¶ added in v0.1.83
func NewAgentServiceLogger(identity *resources.ServiceIdentity) wool.LogProcessor
func NewServiceAgentProvider ¶ added in v0.1.83
func NewServiceLogger ¶
func NewServiceLogger(identity *resources.ServiceIdentity) wool.LogProcessor
func NewServiceProvider ¶ added in v0.0.55
func Register ¶
func Register(agents ...AgentImplementation)
Types ¶
type AgentImplementation ¶
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
type HCLogMessageIn ¶ added in v0.0.55
type HCLogMessageOut ¶ added in v0.0.55
type HCLogMessageOut struct { Log *wool.Log `json:"log"` Source *wool.Identifier `json:"identifier"` }
Click to show internal directories.
Click to hide internal directories.