plugins

package
v0.3.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package plugins provides infrastructure implementations for plugin capabilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDefaultExtractors

func RegisterDefaultExtractors(registry *capabilities.Registry)

RegisterDefaultExtractors registers the built-in plugin extractors.

Types

type CommandExtractor

type CommandExtractor struct{}

CommandExtractor extracts execution capabilities.

func (*CommandExtractor) Extract

func (e *CommandExtractor) Extract(config map[string]interface{}) []capabilities.Capability

Extract analyzes observation config and returns required execution capabilities.

type FileExtractor

type FileExtractor struct{}

FileExtractor extracts filesystem capabilities.

func (*FileExtractor) Extract

func (e *FileExtractor) Extract(config map[string]interface{}) []capabilities.Capability

Extract analyzes observation config and returns required filesystem capabilities.

type NetworkExtractor

type NetworkExtractor struct{}

NetworkExtractor extracts network capabilities.

func (*NetworkExtractor) Extract

func (e *NetworkExtractor) Extract(config map[string]interface{}) []capabilities.Capability

Extract analyzes observation config and returns required network capabilities.

type SemverResolver

type SemverResolver struct{}

SemverResolver implements ports.VersionResolver using Masterminds/semver.

func NewSemverResolver

func NewSemverResolver() *SemverResolver

NewSemverResolver creates a new SemverResolver.

func (*SemverResolver) Resolve

func (r *SemverResolver) Resolve(constraint string, available []string) (string, error)

Resolve converts a version constraint to an exact version from the available options. It returns the highest version that satisfies the constraint.

Directories

Path Synopsis
Package oci implements OCI registry adapters.
Package oci implements OCI registry adapters.
Package repository implements plugin repository adapters.
Package repository implements plugin repository adapters.

Jump to

Keyboard shortcuts

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