generic

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL