extractor

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestExtractor

type ManifestExtractor struct {
	// contains filtered or unexported fields
}

ManifestExtractor extracts capabilities from a plugin manifest.

func NewManifestExtractor

func NewManifestExtractor(manifest []byte, opts ...ManifestExtractorOption) *ManifestExtractor

NewManifestExtractor creates a new ManifestExtractor for the given manifest.

func (*ManifestExtractor) Extract

func (e *ManifestExtractor) Extract(config map[string]interface{}) (*entities.GrantSet, error)

Extract analyzes the manifest and returns the required capabilities.

type ManifestExtractorOption

type ManifestExtractorOption func(*ManifestExtractor)

ManifestExtractorOption configures the ManifestExtractor.

func WithParser

WithParser sets the manifest parser.

func WithTemplateEngine

func WithTemplateEngine(t ports.TemplateEngine) ManifestExtractorOption

WithTemplateEngine sets the template engine.

Jump to

Keyboard shortcuts

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