repository

package module
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 17 Imported by: 8

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) (*v1alpha1.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.

func NewStandalone

func NewStandalone(uris ...string) (KameletRepository, error)

NewStandalone creates a KameletRepository that can be used in cases where there's no connection to a Kubernetes cluster. The given uris are used to construct the repositories. If the uris parameter is nil, then only the DefaultRemoteRepository will be included.

Jump to

Keyboard shortcuts

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