Documentation
¶
Index ¶
- Constants
- type GenericAdapter
- func (a *GenericAdapter) Detect() (bool, error)
- func (a *GenericAdapter) FormatOutput(index *types.Index, format integrations.OutputFormat) (string, error)
- func (a *GenericAdapter) GetCommand(binaryPath string, format integrations.OutputFormat) string
- func (a *GenericAdapter) GetDescription() string
- func (a *GenericAdapter) GetName() string
- func (a *GenericAdapter) GetVersion() string
- func (a *GenericAdapter) IsEnabled() (bool, error)
- func (a *GenericAdapter) Reload(newConfig integrations.IntegrationConfig) error
- func (a *GenericAdapter) Remove() error
- func (a *GenericAdapter) Setup(binaryPath string) error
- func (a *GenericAdapter) Update(binaryPath string) error
- func (a *GenericAdapter) Validate() error
Constants ¶
const (
// IntegrationVersion is the adapter version
IntegrationVersion = "1.0.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericAdapter ¶
type GenericAdapter struct {
// contains filtered or unexported fields
}
GenericAdapter provides a fallback adapter for unsupported frameworks It can output formatted content but does not support automatic setup
func NewGenericAdapter ¶
func NewGenericAdapter(name, description string, format integrations.OutputFormat) *GenericAdapter
NewGenericAdapter creates a new generic integration adapter
func (*GenericAdapter) Detect ¶
func (a *GenericAdapter) Detect() (bool, error)
Detect always returns false for generic adapters Generic adapters cannot auto-detect frameworks
func (*GenericAdapter) FormatOutput ¶
func (a *GenericAdapter) FormatOutput(index *types.Index, format integrations.OutputFormat) (string, error)
FormatOutput formats the index without any framework-specific wrapping Just returns the formatted content (XML, Markdown, or JSON)
func (*GenericAdapter) GetCommand ¶
func (a *GenericAdapter) GetCommand(binaryPath string, format integrations.OutputFormat) string
GetCommand returns the command that should be executed
func (*GenericAdapter) GetDescription ¶
func (a *GenericAdapter) GetDescription() string
GetDescription returns a human-readable description
func (*GenericAdapter) GetName ¶
func (a *GenericAdapter) GetName() string
GetName returns the integration name
func (*GenericAdapter) GetVersion ¶
func (a *GenericAdapter) GetVersion() string
GetVersion returns the adapter version
func (*GenericAdapter) IsEnabled ¶
func (a *GenericAdapter) IsEnabled() (bool, error)
IsEnabled always returns false for generic adapters Generic adapters cannot check configuration status
func (*GenericAdapter) Reload ¶
func (a *GenericAdapter) Reload(newConfig integrations.IntegrationConfig) error
Reload always returns an error for generic adapters
func (*GenericAdapter) Remove ¶
func (a *GenericAdapter) Remove() error
Remove returns an error - generic adapters don't support removal
func (*GenericAdapter) Setup ¶
func (a *GenericAdapter) Setup(binaryPath string) error
Setup returns an error with manual setup instructions
func (*GenericAdapter) Update ¶
func (a *GenericAdapter) Update(binaryPath string) error
Update returns an error - generic adapters don't support updates
func (*GenericAdapter) Validate ¶
func (a *GenericAdapter) Validate() error
Validate always returns an error for generic adapters