From 27a179e986017e6eb6c3253ba06fbd17eb7288ec Mon Sep 17 00:00:00 2001 From: Bartek Tofel Date: Wed, 17 Jan 2024 08:52:41 -0300 Subject: [PATCH] exclude hooks from marshalling of env component (#818) --- docker/test_env/env_component.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docker/test_env/env_component.go b/docker/test_env/env_component.go index 104aeb807..b80611de9 100644 --- a/docker/test_env/env_component.go +++ b/docker/test_env/env_component.go @@ -19,16 +19,16 @@ const ( ) type EnvComponent struct { - ContainerName string `json:"containerName"` - ContainerImage string `json:"containerImage"` - ContainerVersion string `json:"containerVersion"` - ContainerEnvs map[string]string `json:"containerEnvs"` - Networks []string `json:"networks"` - Container tc.Container `json:"-"` - LogStream *logstream.LogStream - PostStartsHooks []tc.ContainerHook - PostStopsHooks []tc.ContainerHook - PreTerminatesHooks []tc.ContainerHook + ContainerName string `json:"containerName"` + ContainerImage string `json:"containerImage"` + ContainerVersion string `json:"containerVersion"` + ContainerEnvs map[string]string `json:"containerEnvs"` + Networks []string `json:"networks"` + Container tc.Container `json:"-"` + LogStream *logstream.LogStream `json:"-"` + PostStartsHooks []tc.ContainerHook `json:"-"` + PostStopsHooks []tc.ContainerHook `json:"-"` + PreTerminatesHooks []tc.ContainerHook `json:"-"` } type EnvComponentOption = func(c *EnvComponent)