Documentation ¶
Index ¶
- Variables
- func GetBlueprintResourceFromComponentDescriptor(cd *types.ComponentDescriptor, blueprintName string) (types.Resource, error)
- func GetBlueprintResourceFromComponentVersion(componentVersion model.ComponentVersion, blueprintName string) (model.Resource, error)
- func RegisterStoreMetrics(reg prometheus.Registerer)
- func Resolve(ctx context.Context, registryAccess model.RegistryAccess, ...) (*blueprints.Blueprint, error)
- func ResolveBlueprint(ctx context.Context, registry model.RegistryAccess, ...) (*blueprints.Blueprint, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DiskUsage discloses disk used by the blueprint store DiskUsage = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: lsv1alpha1.LandscaperMetricsNamespaceName, Subsystem: storeSubsystemName, Name: "disk_usage_bytes", Help: "Bytes on disk currently used by blueprint store instance.", }, ) // StoredItems discloses the number of items stored by the blueprint store. StoredItems = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: lsv1alpha1.LandscaperMetricsNamespaceName, Subsystem: storeSubsystemName, Name: "items_total", Help: "Total number of items currently stored by the blueprint store.", }, ) )
Functions ¶
func GetBlueprintResourceFromComponentDescriptor ¶
func GetBlueprintResourceFromComponentDescriptor(cd *types.ComponentDescriptor, blueprintName string) (types.Resource, error)
GetBlueprintResourceFromComponentDescriptor returns the blueprint resource from a component descriptor.
func GetBlueprintResourceFromComponentVersion ¶
func GetBlueprintResourceFromComponentVersion(componentVersion model.ComponentVersion, blueprintName string) (model.Resource, error)
GetBlueprintResourceFromComponentVersion returns the blueprint resource from a component descriptor.
func RegisterStoreMetrics ¶
func RegisterStoreMetrics(reg prometheus.Registerer)
RegisterStoreMetrics allows to register blueprint store metrics with a given prometheus registerer
func Resolve ¶
func Resolve( ctx context.Context, registryAccess model.RegistryAccess, cdRef *lsv1alpha1.ComponentDescriptorReference, bpDef lsv1alpha1.BlueprintDefinition, bpCacheID *cache.BlueprintCacheID, ) (*blueprints.Blueprint, error)
Resolve returns a blueprint from a given reference. If no fs is given, a temporary filesystem will be created.
func ResolveBlueprint ¶
func ResolveBlueprint(ctx context.Context, registry model.RegistryAccess, cdRef *lsv1alpha1.ComponentDescriptorReference, bpDef lsv1alpha1.BlueprintDefinition) (*blueprints.Blueprint, error)
ResolveBlueprint returns a blueprint from a given reference. If no fs is given, a temporary filesystem will be created.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.