Documentation
¶
Index ¶
- func Execute()
- func GetRootCommand() *cobra.Command
- type Agent
- type AgentConfig
- type Client
- func (c *Client) Close() error
- func (c *Client) GetConfig() (*pb.Config, error)
- func (c *Client) GetRuleStatus(ruleName string) (*pb.Rule, error)
- func (c *Client) ListWatchedPaths() ([]string, error)
- func (c *Client) Ping() error
- func (c *Client) StreamLogs(ruleName, filter string, timeout int64) (pb.AgentService_StreamLogsClient, error)
- func (c *Client) TriggerRule(ruleName string) (*pb.TriggerRuleResponse, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetRootCommand ¶
GetRootCommand returns the root command for external use
Types ¶
type Agent ¶ added in v0.0.45
type Agent struct {
// contains filtered or unexported fields
}
func NewAgent ¶ added in v0.0.45
func NewAgent(config *AgentConfig) (*Agent, error)
NewAgent creates a new server instance with the given configuration
type AgentConfig ¶ added in v0.0.45
type Client ¶ added in v0.0.45
type Client struct {
// contains filtered or unexported fields
}
Client wraps the gRPC client with convenience methods
func (*Client) GetRuleStatus ¶ added in v0.0.45
GetRuleStatus retrieves the status of a specific rule
func (*Client) ListWatchedPaths ¶ added in v0.0.45
ListWatchedPaths retrieves all watched file patterns
func (*Client) StreamLogs ¶ added in v0.0.45
func (c *Client) StreamLogs(ruleName, filter string, timeout int64) (pb.AgentService_StreamLogsClient, error)
StreamLogs streams real-time logs for a specific rule
func (*Client) TriggerRule ¶ added in v0.0.45
func (c *Client) TriggerRule(ruleName string) (*pb.TriggerRuleResponse, error)
TriggerRule triggers execution of a specific rule
Click to show internal directories.
Click to hide internal directories.