source

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 3 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKamelet added in v1.5.0

func AddKamelet(meta *Metadata, content string)

func ExtractKamelet added in v1.5.0

func ExtractKamelet(uri string) string

func ExtractKamelets added in v1.5.0

func ExtractKamelets(uris []string) []string

Types

type GroovyInspector

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

func (GroovyInspector) Extract

func (i GroovyInspector) Extract(source v1.SourceSpec, meta *Metadata) error

type Inspector

type Inspector interface {
	Extract(v1.SourceSpec, *Metadata) error
}

Inspector is the common interface for language specific inspector implementations.

func InspectorForLanguage

func InspectorForLanguage(catalog *camel.RuntimeCatalog, language v1.Language) Inspector

InspectorForLanguage is the factory function to return a new inspector for the given language with the catalog.

type JavaScriptInspector

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

func (JavaScriptInspector) Extract

func (i JavaScriptInspector) Extract(source v1.SourceSpec, meta *Metadata) error

type JavaSourceInspector

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

func (JavaSourceInspector) Extract

func (i JavaSourceInspector) Extract(source v1.SourceSpec, meta *Metadata) error

type KotlinInspector

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

func (KotlinInspector) Extract

func (i KotlinInspector) Extract(source v1.SourceSpec, meta *Metadata) error

type Metadata

type Metadata struct {
	// All starting URIs of defined routes
	FromURIs []string
	// All end URIs of defined routes
	ToURIs []string
	// All inferred dependencies required to run the integration
	Dependencies *strset.Set
	// ExposesHTTPServices indicates if a route defined by the source is exposed
	// through HTTP
	ExposesHTTPServices bool
	// PassiveEndpoints indicates that the source contains only passive endpoints that
	// are activated from external calls, including HTTP (useful to determine if the
	// integration can scale to 0)
	PassiveEndpoints bool
	// RequiredCapabilities lists the capabilities required by the integration
	// to run
	RequiredCapabilities *strset.Set
	// All kamelets
	Kamelets []string
}

Metadata represents metadata for Integration source.

func NewMetadata

func NewMetadata() Metadata

NewMetadata creates a new metadata.

func (*Metadata) AddDependency added in v1.11.0

func (m *Metadata) AddDependency(dependency string)

func (*Metadata) AddRequiredCapability added in v1.11.0

func (m *Metadata) AddRequiredCapability(capability string)

type XMLInspector

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

XMLInspector --.

func (XMLInspector) Extract

func (i XMLInspector) Extract(source v1.SourceSpec, meta *Metadata) error

Extract --.

type YAMLInspector

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

YAMLInspector --.

func (YAMLInspector) Extract

func (i YAMLInspector) Extract(source v1.SourceSpec, meta *Metadata) error

Extract --.

Jump to

Keyboard shortcuts

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