dataprocess

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DataProcessFinalizer = "fluid-dataprocess-controller-finalizer"
	DataProcessChart     = "fluid-dataprocess"

	DataProcessScriptProcessorContainerName = "script-processor"
)

Variables

This section is empty.

Functions

func GenDataProcessValueFile

func GenDataProcessValueFile(client client.Client, dataset *datav1alpha1.Dataset, dataProcess *datav1alpha1.DataProcess) (valueFileName string, err error)

Types

type DataProcessInfo

type DataProcessInfo struct {
	TargetDataset string `json:"targetDataset,omitempty"`

	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	Labels map[string]string `json:"labels,omitempty"`

	Annotations map[string]string `json:"annotations,omitempty"`

	JobProcessor *JobProcessor `json:"jobProcessor,omitempty"`

	ScriptProcessor *ScriptProcessor `json:"scriptProcessor,omitempty"`
}

type DataProcessValue

type DataProcessValue struct {
	Name string `json:"name"`

	Owner *common.OwnerReference `json:"owner,omitempty"`

	DataProcessInfo DataProcessInfo `json:"dataProcess"`
}

func GenDataProcessValue

func GenDataProcessValue(dataset *datav1alpha1.Dataset, dataProcess *datav1alpha1.DataProcess) *DataProcessValue

type JobProcessor

type JobProcessor struct {
	PodSpec *corev1.PodSpec `json:"podSpec,omitempty"`
}

type JobProcessorImpl

type JobProcessorImpl struct {
	*datav1alpha1.JobProcessor
}

func (*JobProcessorImpl) TransformDataProcessValues

func (p *JobProcessorImpl) TransformDataProcessValues(value *DataProcessValue, datasetVolumes []corev1.Volume, datasetVolumeMounts []corev1.VolumeMount)

func (*JobProcessorImpl) ValidateDatasetMountPath

func (p *JobProcessorImpl) ValidateDatasetMountPath(datasetMountPath string) (pass bool, conflictVolName string, conflictContainerName string)

type Processor

type Processor interface {
	ValidateDatasetMountPath(datasetMountPath string) (pass bool, conflictVolName string, conflictContainerName string)

	TransformDataProcessValues(value *DataProcessValue, datasetVolumes []corev1.Volume, datasetVolumeMounts []corev1.VolumeMount)
}

func GetProcessorImpl

func GetProcessorImpl(dataProcess *datav1alpha1.DataProcess) Processor

type ScriptProcessor

type ScriptProcessor struct {
	Image string `json:"image,omitempty"`

	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`

	RestartPolicy corev1.RestartPolicy `json:"restartPolicy,omitempty"`

	Command []string `json:"command,omitempty"`

	Source string `json:"source,omitempty"`

	Envs []corev1.EnvVar `json:"envs,omitempty"`

	Volumes []corev1.Volume `json:"volumes,omitempty"`

	VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`

	Resources corev1.ResourceRequirements `json:"resources,omitempty"`

	Affinity *corev1.Affinity `json:"affinity,omitempty"`
}

type ScriptProcessorImpl

type ScriptProcessorImpl struct {
	*datav1alpha1.ScriptProcessor
}

func (*ScriptProcessorImpl) TransformDataProcessValues

func (p *ScriptProcessorImpl) TransformDataProcessValues(value *DataProcessValue, datasetVolumes []corev1.Volume, datasetVolumeMounts []corev1.VolumeMount)

func (*ScriptProcessorImpl) ValidateDatasetMountPath

func (p *ScriptProcessorImpl) ValidateDatasetMountPath(datasetMountPath string) (pass bool, conflictVolName string, conflictContainerName string)

Jump to

Keyboard shortcuts

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