From e4993996a5a5c3ac8d646995c065f67a2db0a165 Mon Sep 17 00:00:00 2001 From: "Thibault \"bui\" Koechlin" Date: Mon, 29 Jun 2020 17:47:57 +0200 Subject: [PATCH] exclude fields so that they are not serialized when we're rewritting api.yaml file (#103) --- pkg/cwapi/auth.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cwapi/auth.go b/pkg/cwapi/auth.go index 111d4c669..88b5a06bf 100644 --- a/pkg/cwapi/auth.go +++ b/pkg/cwapi/auth.go @@ -31,14 +31,14 @@ type ApiCtx struct { CfgUser string `yaml:"machine_id"` CfgPassword string `yaml:"password"` Creds ApiCreds `yaml:"-"` - Muted bool `yaml:"muted"` - DebugDump bool `yaml:"debug_dump"` - + /*mostly for mocking/faking api*/ + Muted bool `yaml:"-"` + DebugDump bool `yaml:"-"` /*runtime*/ tokenExpired bool `yaml:"-"` toPush []types.Event `yaml:"-"` Http *sling.Sling `yaml:"-"` - PusherTomb tomb.Tomb + PusherTomb tomb.Tomb `yaml:"-"` } type ApiCreds struct {