From 94929fdafbfffc11ca00b38aedb0a5dfd979d8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Mon, 17 Feb 2020 12:33:58 +0100 Subject: [PATCH] compose: drop the image field I apparently failed to remove it in cc00e0cd probably due to some rebasing issues. --- internal/compose/compose.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/internal/compose/compose.go b/internal/compose/compose.go index 547a2fcd1..9f400c38d 100644 --- a/internal/compose/compose.go +++ b/internal/compose/compose.go @@ -19,13 +19,6 @@ func (ste *StateTransitionError) Error() string { return ste.message } -// Image represents the image resulting from a compose. -type Image struct { - Path string - Mime string - Size uint64 -} - // ImageBuild represents a single image build inside a compose type ImageBuild struct { Id int `json:"id"` @@ -37,17 +30,11 @@ type ImageBuild struct { JobCreated time.Time `json:"job_created"` JobStarted time.Time `json:"job_started"` JobFinished time.Time `json:"job_finished"` - Image *Image `json:"image"` Size uint64 `json:"size"` } // DeepCopy creates a copy of the ImageBuild structure func (ib *ImageBuild) DeepCopy() ImageBuild { - var newImagePtr *Image = nil - if ib.Image != nil { - imageCopy := *ib.Image - newImagePtr = &imageCopy - } var newPipelinePtr *osbuild.Pipeline = nil if ib.Pipeline != nil { pipelineCopy := *ib.Pipeline @@ -68,7 +55,6 @@ func (ib *ImageBuild) DeepCopy() ImageBuild { JobCreated: ib.JobCreated, JobStarted: ib.JobStarted, JobFinished: ib.JobFinished, - Image: newImagePtr, } }