From 382720d2423e2a6b5c9903a2816f5944617ec668 Mon Sep 17 00:00:00 2001 From: Fabian Vowie Date: Tue, 4 Jan 2022 18:45:04 +0100 Subject: [PATCH] Add pipeline definition structs --- pipeline.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pipeline.go diff --git a/pipeline.go b/pipeline.go new file mode 100644 index 0000000..c010406 --- /dev/null +++ b/pipeline.go @@ -0,0 +1,28 @@ +package main + +type PipelineType int +type PipelineStepType int + +const ( + Image PipelineType = iota + Video +) + +const ( + Resize PipelineStepType = iota + Compress + Encode +) + +type Pipeline struct { + Name string + Type PipelineType + RemoveMetadata bool + Steps []Step +} + +type Step struct { + Name string + Type PipelineStepType +} +