Documentation ¶
Index ¶
Constants ¶
const (
URI = "uri"
)
Variables ¶
This section is empty.
Functions ¶
func AddKamelet ¶
func ExtractKamelet ¶
func ExtractKamelets ¶
Types ¶
type GroovyInspector ¶
type GroovyInspector struct {
// contains filtered or unexported fields
}
GroovyInspector inspects Groovy DSL spec.
func (GroovyInspector) Extract ¶
func (i GroovyInspector) Extract(source v1.SourceSpec, meta *Metadata) error
Extract extracts all metadata from source spec.
func (GroovyInspector) ReplaceFromURI ¶ added in v2.5.0
func (i GroovyInspector) ReplaceFromURI(source *v1.SourceSpec, newFromURI string) (bool, error)
ReplaceFromURI parses the source content and replace the `from` URI configuration with the a new URI. Returns true if it applies a replacement.
type Inspector ¶
type Inspector interface { // Extract scan the source spec for metadata. Extract(spec v1.SourceSpec, metadata *Metadata) error // ReplaceFromURI parses the source content and replace the `from` URI configuration with the a new URI. ReplaceFromURI(source *v1.SourceSpec, newFromURI string) (bool, 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
}
JavaScriptInspector inspects Javascript DSL spec.
func (JavaScriptInspector) Extract ¶
func (i JavaScriptInspector) Extract(source v1.SourceSpec, meta *Metadata) error
Extract extracts all metadata from source spec.
func (JavaScriptInspector) ReplaceFromURI ¶ added in v2.5.0
func (i JavaScriptInspector) ReplaceFromURI(source *v1.SourceSpec, newFromURI string) (bool, error)
ReplaceFromURI parses the source content and replace the `from` URI configuration with the a new URI. Returns true if it applies a replacement.
type JavaSourceInspector ¶
type JavaSourceInspector struct {
// contains filtered or unexported fields
}
JavaScriptInspector inspects Java DSL spec.
func (JavaSourceInspector) Extract ¶
func (i JavaSourceInspector) Extract(source v1.SourceSpec, meta *Metadata) error
Extract extracts all metadata from source spec.
func (JavaSourceInspector) ReplaceFromURI ¶ added in v2.5.0
func (i JavaSourceInspector) ReplaceFromURI(source *v1.SourceSpec, newFromURI string) (bool, error)
ReplaceFromURI parses the source content and replace the `from` URI configuration with the a new URI. Returns true if it applies a replacement.
type KotlinInspector ¶
type KotlinInspector struct {
// contains filtered or unexported fields
}
KotlinInspector inspects Kotlin DSL spec.
func (KotlinInspector) Extract ¶
func (i KotlinInspector) Extract(source v1.SourceSpec, meta *Metadata) error
Extract extracts all metadata from source spec.
func (KotlinInspector) ReplaceFromURI ¶ added in v2.5.0
func (i KotlinInspector) ReplaceFromURI(source *v1.SourceSpec, newFromURI string) (bool, error)
ReplaceFromURI parses the source content and replace the `from` URI configuration with the a new URI. Returns true if it applies a replacement.
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 *sets.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 *sets.Set // All kamelets Kamelets []string }
Metadata represents metadata for Integration source.
func (*Metadata) AddDependency ¶
AddDependency -- .
func (*Metadata) AddRequiredCapability ¶
AddRequiredCapability -- .
type XMLInspector ¶
type XMLInspector struct {
// contains filtered or unexported fields
}
XMLInspector inspects XML DSL spec.
func (XMLInspector) Extract ¶
func (i XMLInspector) Extract(source v1.SourceSpec, meta *Metadata) error
Extract extracts all metadata from source spec.
func (XMLInspector) ReplaceFromURI ¶ added in v2.5.0
func (i XMLInspector) ReplaceFromURI(source *v1.SourceSpec, newFromURI string) (bool, error)
ReplaceFromURI parses the source content and replace the `from` URI configuration with the a new URI. Returns true if it applies a replacement.
type YAMLInspector ¶
type YAMLInspector struct {
// contains filtered or unexported fields
}
YAMLInspector inspects YAML DSL spec.
func (YAMLInspector) Extract ¶
func (i YAMLInspector) Extract(source v1.SourceSpec, meta *Metadata) error
Extract extracts all metadata from source spec.
func (YAMLInspector) ReplaceFromURI ¶ added in v2.5.0
func (i YAMLInspector) ReplaceFromURI(source *v1.SourceSpec, newFromURI string) (bool, error)
ReplaceFromURI parses the source content and replace the `from` URI configuration with the a new URI. Returns true if it applies a replacement.