Documentation ¶
Index ¶
- Variables
- func AddProcessor(processor wool.LogProcessorWithSource)
- func Cleanup(unique string)
- func ClearAgents()
- func Download(ctx context.Context, p *configurations.Agent) error
- func DownloadURL(p *configurations.Agent) string
- func Load[P AgentContext, Instance any](ctx context.Context, p *configurations.Agent, unique string) (*Instance, error)
- func NewAgentLogger(agent *configurations.Agent) wool.LogProcessor
- func NewAgentProvider(ctx context.Context, agent *configurations.Agent) *wool.Provider
- func NewServiceLogger(service *configurations.ServiceIdentity) wool.LogProcessor
- func NewServiceProvider(ctx context.Context, service *configurations.ServiceIdentity) *wool.Provider
- func PinToLatestRelease(agent *configurations.Agent) error
- func Register(agents ...AgentImplementation)
- func ValidURL(s string) bool
- type Agent
- type AgentContext
- type AgentImplementation
- type AgentLogger
- type ClientLogHandler
- type GithubSource
- type HCLogMessageIn
- type HCLogMessageOut
- type Pluggable
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 ClearAgents ¶
func ClearAgents()
func DownloadURL ¶
func DownloadURL(p *configurations.Agent) string
func Load ¶
func Load[P AgentContext, Instance any](ctx context.Context, p *configurations.Agent, unique string) (*Instance, error)
func NewAgentLogger ¶
func NewAgentLogger(agent *configurations.Agent) wool.LogProcessor
func NewAgentProvider ¶ added in v0.0.55
func NewServiceLogger ¶
func NewServiceLogger(service *configurations.ServiceIdentity) wool.LogProcessor
func NewServiceProvider ¶ added in v0.0.55
func NewServiceProvider(ctx context.Context, service *configurations.ServiceIdentity) *wool.Provider
func PinToLatestRelease ¶ added in v0.0.41
func PinToLatestRelease(agent *configurations.Agent) error
func Register ¶
func Register(agents ...AgentImplementation)
Types ¶
type Agent ¶
type Agent struct { Configuration *configurations.Agent Type string Implementation plugin.Plugin }
type AgentContext ¶
type AgentContext interface { Key(p *configurations.Agent, unique string) string Default() 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 {
// 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 GithubSource ¶ added in v0.0.33
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"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.