From f8e2d89d6c226dd945a7828b55c5abdcd82218a4 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Mon, 30 Sep 2019 12:53:37 +0200 Subject: [PATCH] fix(v2): field cases. --- dumper/v2/storeddata.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dumper/v2/storeddata.go b/dumper/v2/storeddata.go index 2357442..a45e154 100644 --- a/dumper/v2/storeddata.go +++ b/dumper/v2/storeddata.go @@ -15,15 +15,15 @@ type StoredData struct { // Certificate is a struct which contains all data needed from an ACME certificate type Certificate struct { - Domain Domain - Certificate []byte - Key []byte + Domain Domain `json:"domain,omitempty"` + Certificate []byte `json:"certificate,omitempty"` + Key []byte `json:"key,omitempty"` } // Domain holds a domain name with SANs type Domain struct { - Main string - SANs []string + Main string `json:"main,omitempty"` + SANs []string `json:"sans,omitempty"` } // Account is used to store lets encrypt registration info