process

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.

SPDX-License-Identifier: Apache-2.0

SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceProcessingPipeline

type ResourceProcessingPipeline interface {
	// Process executes all processors for a resource.
	// Returns the component descriptor and resource of the last processor.
	Process(context.Context, cdv2.ComponentDescriptor, cdv2.Resource) (*cdv2.ComponentDescriptor, cdv2.Resource, error)
}

ResourceProcessingPipeline describes a chain of multiple processors for processing a resource. Each processor receives its input from the preceding processor and writes the output for the subsequent processor. To work correctly, a pipeline must consist of 1 downloader, 0..n processors, and 1..n uploaders.

func NewResourceProcessingPipeline

func NewResourceProcessingPipeline(processors ...ResourceStreamProcessor) ResourceProcessingPipeline

NewResourceProcessingPipeline returns a new ResourceProcessingPipeline

type ResourceStreamProcessor

type ResourceStreamProcessor interface {
	// Process executes the processor for a resource. Input and Output streams must be
	// compliant to a specific format ("processor message"). See also ./utils/processor_message.go
	// which describes the format and provides helper functions to read/write processor messages.
	Process(context.Context, io.Reader, io.Writer) error
}

ResourceStreamProcessor describes an individual processor for processing a resource. A processor can upload, modify, or download a resource.

Directories

Path Synopsis
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
example command
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
sleep command
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.

Jump to

Keyboard shortcuts

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