package pipelines type IExecutableStep interface { Execute() } // Resize image type ResizeImageStep struct { Step Options struct { Width int `json:"width"` Height int `json:"height"` Upscale bool `json:"upscale"` } `json:"options"` } func (s ResizeImageStep) Execute() { // TODO } // Compress image type CompressImageStep struct { Step Options struct { Quality int `json:"quality"` } `json:"options"` } func (s CompressImageStep) Execute() { // TODO }