camel

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 20 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ManageIntegrationDependencies added in v1.3.0

func ManageIntegrationDependencies(
	project *maven.Project,
	dependencies []string,
	catalog *RuntimeCatalog) error

ManageIntegrationDependencies --

func SanitizeIntegrationDependencies added in v1.3.0

func SanitizeIntegrationDependencies(dependencies []maven.Dependency) error

SanitizeIntegrationDependencies --

Types

type CatalogVersion

type CatalogVersion struct {
	RuntimeVersion *semver.Version
	Catalog        *v1.CamelCatalog
}

CatalogVersion --

type CatalogVersionCollection

type CatalogVersionCollection []CatalogVersion

CatalogVersionCollection --

func (CatalogVersionCollection) Len

func (c CatalogVersionCollection) Len() int

Len returns the length of a collection. The number of CatalogVersion instances on the slice.

func (CatalogVersionCollection) Less

func (c CatalogVersionCollection) Less(i, j int) bool

Less is needed for the sort interface to compare two CatalogVersion objects on the slice. If checks if one is less than the other.

func (CatalogVersionCollection) Swap

func (c CatalogVersionCollection) Swap(i, j int)

Swap is needed for the sort interface to replace the CatalogVersion objects at two different positions in the slice.

type RuntimeCatalog

type RuntimeCatalog struct {
	v1.CamelCatalogSpec
	// contains filtered or unexported fields
}

RuntimeCatalog --

func DefaultCatalog

func DefaultCatalog() (*RuntimeCatalog, error)

func GenerateCatalog

func GenerateCatalog(
	ctx context.Context,
	client k8sclient.Reader,
	namespace string,
	mvn v1.MavenSpec,
	runtime v1.RuntimeSpec,
	providerDependencies []maven.Dependency) (*RuntimeCatalog, error)

func GenerateCatalogCommon added in v1.3.0

func GenerateCatalogCommon(
	ctx context.Context,
	settings string,
	caCert []byte,
	mvn v1.MavenSpec,
	runtime v1.RuntimeSpec,
	providerDependencies []maven.Dependency) (*RuntimeCatalog, error)

func LoadCatalog

func LoadCatalog(ctx context.Context, client client.Client, namespace string, runtime v1.RuntimeSpec) (*RuntimeCatalog, error)

LoadCatalog --

func NewRuntimeCatalog

func NewRuntimeCatalog(spec v1.CamelCatalogSpec) *RuntimeCatalog

NewRuntimeCatalog --

func QuarkusCatalog

func QuarkusCatalog() (*RuntimeCatalog, error)

func (*RuntimeCatalog) GetArtifactByDataFormat added in v1.3.0

func (c *RuntimeCatalog) GetArtifactByDataFormat(dataFormat string) *v1.CamelArtifact

GetArtifactByDataFormat returns the artifact corresponding to the given data format

func (*RuntimeCatalog) GetArtifactByScheme

func (c *RuntimeCatalog) GetArtifactByScheme(scheme string) *v1.CamelArtifact

GetArtifactByScheme returns the artifact corresponding to the given component scheme

func (*RuntimeCatalog) GetJavaTypeDependency

func (c *RuntimeCatalog) GetJavaTypeDependency(camelType string) (string, bool)

GetJavaTypeDependency returns the maven dependency for the given type name

func (*RuntimeCatalog) GetLanguageDependency

func (c *RuntimeCatalog) GetLanguageDependency(language string) (string, bool)

GetLanguageDependency returns the maven dependency for the given language name

func (*RuntimeCatalog) GetScheme

func (c *RuntimeCatalog) GetScheme(id string) (v1.CamelScheme, bool)

GetScheme returns the scheme definition for the given scheme id

func (*RuntimeCatalog) HasArtifact

func (c *RuntimeCatalog) HasArtifact(artifact string) bool

HasArtifact --

func (*RuntimeCatalog) VisitArtifacts

func (c *RuntimeCatalog) VisitArtifacts(visitor func(string, v1.CamelArtifact) bool)

VisitArtifacts --

func (*RuntimeCatalog) VisitSchemes

func (c *RuntimeCatalog) VisitSchemes(visitor func(string, v1.CamelScheme) bool)

VisitSchemes --

Jump to

Keyboard shortcuts

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