Documentation ¶
Index ¶
Constants ¶
View Source
const (
// NoneRepository is a marker used to indicate that no repository should be used.
NoneRepository = "none"
)
Variables ¶
View Source
var DefaultRemoteRepository = NoneRepository
Functions ¶
This section is empty.
Types ¶
type KameletRepository ¶
type KameletRepository interface { // List the kamelets available in the repository List(ctx context.Context) ([]string, error) // Get the Kamelet corresponding to the given name, or nil if not found Get(ctx context.Context, name string) (*v1.Kamelet, error) // String information about the repository String() string }
KameletRepository can be used to obtain a Kamelet definition, looking it up in one or more physical locations.
func New ¶
func New(ctx context.Context, client camel.Interface, namespaces ...string) (KameletRepository, error)
New creates a KameletRepository for the given namespaces. Kamelets are first looked up in all the given namespaces, in the order they appear. If one namespace defines an IntegrationPlatform (only the first IntegrationPlatform in state "Ready" found), then all kamelet repository URIs defined in the IntegrationPlatform are included.
func NewForPlatform ¶
func NewForPlatform(ctx context.Context, client camel.Interface, platform *v1.IntegrationPlatform, namespaces ...string) (KameletRepository, error)
NewForPlatform creates a KameletRepository for the given namespaces and platform. Kamelets are first looked up in all the given namespaces, in the order they appear, then repositories defined in the platform are looked up.
Click to show internal directories.
Click to hide internal directories.