Documentation ¶
Overview ¶
Package v1 file doc.go required for the doc generator to register this as an API
+groupName=pipelines.gst.io
Package v1 contains API Schema definitions for the pipelines v1 API group +kubebuilder:object:generate=true +groupName=pipelines.gst.io
Index ¶
- Constants
- Variables
- func GetJobLabels(pipeline types.Pipeline, key string) map[string]string
- type Job
- func (in *Job) DeepCopy() *Job
- func (in *Job) DeepCopyInto(out *Job)
- func (in *Job) DeepCopyObject() runtime.Object
- func (j *Job) GetPipelineKind() pipelinesmeta.PipelineKind
- func (j *Job) GetSplitTransformPipeline(ctx context.Context, client client.Client) (*SplitTransform, error)
- func (j *Job) GetTransformPipeline(ctx context.Context, client client.Client) (*Transform, error)
- func (j *Job) OwnerReferences() []metav1.OwnerReference
- type JobList
- type JobSpec
- type JobState
- type JobStatus
- type SplitTransform
- func (in *SplitTransform) DeepCopy() *SplitTransform
- func (in *SplitTransform) DeepCopyInto(out *SplitTransform)
- func (in *SplitTransform) DeepCopyObject() runtime.Object
- func (t *SplitTransform) GetPipelineConfig() *pipelinesmeta.PipelineConfig
- func (t *SplitTransform) GetPipelineKind() pipelinesmeta.PipelineKind
- func (t *SplitTransform) GetSinkConfig() *pipelinesmeta.SourceSinkConfig
- func (t *SplitTransform) GetSinkObjects(srcKey string) []*pipelinesmeta.Object
- func (t *SplitTransform) GetSrcConfig() *pipelinesmeta.SourceSinkConfig
- func (t *SplitTransform) OwnerReferences() []metav1.OwnerReference
- type SplitTransformList
- type SplitTransformSpec
- type SplitTransformStatus
- type Transform
- func (in *Transform) DeepCopy() *Transform
- func (in *Transform) DeepCopyInto(out *Transform)
- func (in *Transform) DeepCopyObject() runtime.Object
- func (t *Transform) GetPipelineConfig() *pipelinesmeta.PipelineConfig
- func (t *Transform) GetPipelineKind() pipelinesmeta.PipelineKind
- func (t *Transform) GetSinkConfig() *pipelinesmeta.SourceSinkConfig
- func (t *Transform) GetSinkObjects(srcKey string) []*pipelinesmeta.Object
- func (t *Transform) GetSrcConfig() *pipelinesmeta.SourceSinkConfig
- func (t *Transform) OwnerReferences() []metav1.OwnerReference
- type TransformList
- type TransformSpec
- type TransformStatus
Constants ¶
const ( // PipelineSplitTransform represents a splittransform pipeline PipelineSplitTransform pipelinesmeta.PipelineKind = "SplitTransform" )
const ( // PipelineTransform represents a transform pipeline PipelineTransform pipelinesmeta.PipelineKind = "Transform" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "pipelines.gst.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
Types ¶
type Job ¶
type Job struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec JobSpec `json:"spec,omitempty"` Status JobStatus `json:"status,omitempty"` }
Job is the Schema for the jobs API
func (*Job) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job.
func (*Job) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Job) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Job) GetPipelineKind ¶
func (j *Job) GetPipelineKind() pipelinesmeta.PipelineKind
GetPipelineKind returns the type of the pipeline.
func (*Job) GetSplitTransformPipeline ¶
func (j *Job) GetSplitTransformPipeline(ctx context.Context, client client.Client) (*SplitTransform, error)
GetSplitTransformPipeline returns the splittransform pipeline for this job spec.
func (*Job) GetTransformPipeline ¶
GetTransformPipeline returns the transform pipeline for this job spec.
func (*Job) OwnerReferences ¶
func (j *Job) OwnerReferences() []metav1.OwnerReference
OwnerReferences returns the OwnerReferences for this job.
type JobList ¶
type JobList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Job `json:"items"` }
JobList contains a list of Job
func (*JobList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobList.
func (*JobList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type JobSpec ¶
type JobSpec struct { // A reference to the pipeline for this job's configuration. PipelineReference pipelinesmeta.PipelineReference `json:"pipelineRef"` // The source object for the pipeline. Source *pipelinesmeta.Object `json:"src"` // The output objects for the pipeline. Sinks []*pipelinesmeta.Object `json:"sinks"` }
JobSpec defines the desired state of Job
func (*JobSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec.
func (*JobSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobState ¶
type JobState string
JobState represents the state of a pipeline job.
const ( // JobPending means the pipeline is waiting to be started. JobPending JobState = "Pending" // JobInProgress means the pipeline is currently running. JobInProgress JobState = "InProgress" // JobFinished means the pipeline completed without error. JobFinished JobState = "Finished" // JobFailed means the pipeline completed with an error. JobFailed JobState = "Failed" )
type JobStatus ¶
type JobStatus struct { // Conditions represent the latest available observations of a job's state Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` }
JobStatus defines the observed state of Job
func (*JobStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus.
func (*JobStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SplitTransform ¶
type SplitTransform struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SplitTransformSpec `json:"spec,omitempty"` Status SplitTransformStatus `json:"status,omitempty"` }
SplitTransform is the Schema for the splittransforms API +kubebuilder:resource:path="splittransforms",scope=Namespaced
func (*SplitTransform) DeepCopy ¶
func (in *SplitTransform) DeepCopy() *SplitTransform
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SplitTransform.
func (*SplitTransform) DeepCopyInto ¶
func (in *SplitTransform) DeepCopyInto(out *SplitTransform)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SplitTransform) DeepCopyObject ¶
func (in *SplitTransform) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SplitTransform) GetPipelineConfig ¶
func (t *SplitTransform) GetPipelineConfig() *pipelinesmeta.PipelineConfig
GetPipelineConfig returns the PipelineConfig.
func (*SplitTransform) GetPipelineKind ¶
func (t *SplitTransform) GetPipelineKind() pipelinesmeta.PipelineKind
GetPipelineKind satisfies the Pipeline interface and returns the type of the pipeline.
func (*SplitTransform) GetSinkConfig ¶
func (t *SplitTransform) GetSinkConfig() *pipelinesmeta.SourceSinkConfig
GetSinkConfig will return the first non-dropped sink config found in this pipeline.
func (*SplitTransform) GetSinkObjects ¶
func (t *SplitTransform) GetSinkObjects(srcKey string) []*pipelinesmeta.Object
GetSinkObjects returns the sink objects for a pipeline.
func (*SplitTransform) GetSrcConfig ¶
func (t *SplitTransform) GetSrcConfig() *pipelinesmeta.SourceSinkConfig
GetSrcConfig will return the src config for this pipeline merged with the globals.
func (*SplitTransform) OwnerReferences ¶
func (t *SplitTransform) OwnerReferences() []metav1.OwnerReference
OwnerReferences returns the OwnerReferences for this pipeline to be placed on jobs.
type SplitTransformList ¶
type SplitTransformList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SplitTransform `json:"items"` }
SplitTransformList contains a list of SplitTransform
func (*SplitTransformList) DeepCopy ¶
func (in *SplitTransformList) DeepCopy() *SplitTransformList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SplitTransformList.
func (*SplitTransformList) DeepCopyInto ¶
func (in *SplitTransformList) DeepCopyInto(out *SplitTransformList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SplitTransformList) DeepCopyObject ¶
func (in *SplitTransformList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SplitTransformSpec ¶
type SplitTransformSpec struct { // Global configurations to apply when omitted from the src or sink configurations. Globals *pipelinesmeta.SourceSinkConfig `json:"globals,omitempty"` // Configurations for src object to the pipeline. Src *pipelinesmeta.SourceSinkConfig `json:"src"` // Configurations for video stream outputs. The linkto field in the pipeline config // should be present with the value `video-out` to direct an element to this output. Video *pipelinesmeta.SourceSinkConfig `json:"video,omitempty"` // Configurations for audio stream outputs. The linkto field in the pipeline config // should be present with the value `audio-out` to direct an element to this output. Audio *pipelinesmeta.SourceSinkConfig `json:"audio,omitempty"` // The configuration for the processing pipeline Pipeline *pipelinesmeta.PipelineConfig `json:"pipeline"` }
SplitTransformSpec defines the desired state of SplitTransform. Note that due to current implementation, the various streams can be directed to different buckets, but they have to be buckets accessible via the same MinIO/S3 server(s).
func (*SplitTransformSpec) DeepCopy ¶
func (in *SplitTransformSpec) DeepCopy() *SplitTransformSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SplitTransformSpec.
func (*SplitTransformSpec) DeepCopyInto ¶
func (in *SplitTransformSpec) DeepCopyInto(out *SplitTransformSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SplitTransformStatus ¶
type SplitTransformStatus struct { // Conditions represent the latest available observations of a splittransform's state Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` }
SplitTransformStatus defines the observed state of SplitTransform
func (*SplitTransformStatus) DeepCopy ¶
func (in *SplitTransformStatus) DeepCopy() *SplitTransformStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SplitTransformStatus.
func (*SplitTransformStatus) DeepCopyInto ¶
func (in *SplitTransformStatus) DeepCopyInto(out *SplitTransformStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Transform ¶
type Transform struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TransformSpec `json:"spec,omitempty"` Status TransformStatus `json:"status,omitempty"` }
Transform is the Schema for the transforms API
func (*Transform) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Transform.
func (*Transform) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Transform) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Transform) GetPipelineConfig ¶
func (t *Transform) GetPipelineConfig() *pipelinesmeta.PipelineConfig
GetPipelineConfig returns the PipelineConfig.
func (*Transform) GetPipelineKind ¶
func (t *Transform) GetPipelineKind() pipelinesmeta.PipelineKind
GetPipelineKind satisfies the Pipeline interface and returns the type of the pipeline.
func (*Transform) GetSinkConfig ¶
func (t *Transform) GetSinkConfig() *pipelinesmeta.SourceSinkConfig
GetSinkConfig will return the sink config for this pipeline merged with the globals.
func (*Transform) GetSinkObjects ¶
func (t *Transform) GetSinkObjects(srcKey string) []*pipelinesmeta.Object
GetSinkObjects returns the sink objects for a pipeline.
func (*Transform) GetSrcConfig ¶
func (t *Transform) GetSrcConfig() *pipelinesmeta.SourceSinkConfig
GetSrcConfig will return the src config for this pipeline merged with the globals.
func (*Transform) OwnerReferences ¶
func (t *Transform) OwnerReferences() []metav1.OwnerReference
OwnerReferences returns the OwnerReferences for this pipeline to be placed on jobs.
type TransformList ¶
type TransformList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Transform `json:"items"` }
TransformList contains a list of Transform
func (*TransformList) DeepCopy ¶
func (in *TransformList) DeepCopy() *TransformList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransformList.
func (*TransformList) DeepCopyInto ¶
func (in *TransformList) DeepCopyInto(out *TransformList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TransformList) DeepCopyObject ¶
func (in *TransformList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TransformSpec ¶
type TransformSpec struct { // Global configurations to apply when omitted from the src or sink configurations. Globals *pipelinesmeta.SourceSinkConfig `json:"globals,omitempty"` // Configurations for src object to the pipeline. Src *pipelinesmeta.SourceSinkConfig `json:"src"` // Configurations for sink objects from the pipeline. Sink *pipelinesmeta.SourceSinkConfig `json:"sink"` // The configuration for the processing pipeline Pipeline *pipelinesmeta.PipelineConfig `json:"pipeline"` }
TransformSpec defines the desired state of Transform
func (*TransformSpec) DeepCopy ¶
func (in *TransformSpec) DeepCopy() *TransformSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransformSpec.
func (*TransformSpec) DeepCopyInto ¶
func (in *TransformSpec) DeepCopyInto(out *TransformSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TransformStatus ¶
type TransformStatus struct { // Conditions represent the latest available observations of a transform's state Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` }
TransformStatus defines the observed state of Transform
func (*TransformStatus) DeepCopy ¶
func (in *TransformStatus) DeepCopy() *TransformStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransformStatus.
func (*TransformStatus) DeepCopyInto ¶
func (in *TransformStatus) DeepCopyInto(out *TransformStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.