Skip to content

Commit

Permalink
exclude hooks from marshalling of env component (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel authored Jan 17, 2024
1 parent 86a6975 commit 27a179e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docker/test_env/env_component.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27a179e

Please sign in to comment.