Versions in this module Expand all Collapse all v1 v1.14.0 Nov 4, 2024 Changes in this version + const PluginName + var ConfigJSONSchema string + var IncomingWebhookJSONSchema string + type BotkubeRunner struct + func NewBotkubeRunner(tracer trace.Tracer) (*BotkubeRunner, error) + func (r *BotkubeRunner) GetAgentStatus(ctx context.Context, _ []byte, _ *Payload) (string, error) + func (r *BotkubeRunner) GetStartupAgentConfiguration(ctx context.Context, _ []byte, p *Payload) (string, error) + type Config struct + HoneycombAPIKey string + HoneycombSampleRate int + Log config.Logger + OpenAIAssistantID string + OpenAIBaseURL string + VectorStoreIDForThread string + Version string + func (c *Config) Validate() error + type ConfigWithDetails struct + IncomingRequestPrompt string + LoaderValidationWarnings string + type KubectlRunner struct + func NewKubectlRunner(kubeconfigPath string, tracer trace.Tracer) *KubectlRunner + func (k *KubectlRunner) DescribeResource(ctx context.Context, rawArgs []byte, _ *Payload) (string, error) + func (k *KubectlRunner) GetEvents(ctx context.Context, rawArgs []byte, _ *Payload) (string, error) + func (k *KubectlRunner) GetResource(ctx context.Context, rawArgs []byte, _ *Payload) (string, error) + func (k *KubectlRunner) Logs(ctx context.Context, rawArgs []byte, _ *Payload) (string, error) + func (k *KubectlRunner) TopNodes(ctx context.Context, rawArgs []byte, _ *Payload) (string, error) + func (k *KubectlRunner) TopPods(ctx context.Context, rawArgs []byte, _ *Payload) (string, error) + type KubescapeRunner struct + func NewKubescapeRunner(kubeconfigPath string, tracer trace.Tracer) *KubescapeRunner + func (k *KubescapeRunner) ScanCluster(ctx context.Context, _ []byte, _ *Payload) (string, error) + func (k *KubescapeRunner) ScanControl(ctx context.Context, rawArgs []byte, _ *Payload) (string, error) + func (k *KubescapeRunner) ScanImage(ctx context.Context, rawArgs []byte, _ *Payload) (string, error) + func (k *KubescapeRunner) ScanWorkload(ctx context.Context, rawArgs []byte, _ *Payload) (string, error) + type Payload struct + MessageID string + Prompt string + type Source struct + func NewSource(version string) *Source + func (s *Source) HandleExternalRequest(ctx context.Context, in source.ExternalRequestInput) (source.ExternalRequestOutput, error) + func (s *Source) Metadata(context.Context) (api.MetadataOutput, error) + func (s *Source) Stream(ctx context.Context, in source.StreamInput) (source.StreamOutput, error)