From 03eb87d9ddaa25cf27f160bda4e3a52cf8d2b4c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Fri, 29 Oct 2021 01:03:17 +0200 Subject: [PATCH] Proper name for JSON format of snapshot record Sandbox renamed to dev in the deploy pipeline --- .drone.yml | 6 +++--- apps/snapshots.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 397d21a..d30e666 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,12 +28,12 @@ services: kind: pipeline type: docker -name: Sandbox deploy +name: Dev deploy steps: - name: build # image: golang:1.17-buster # this one is used in production - image: golang:1.17-bullseye # this one is used in sandbox + image: golang:1.17-bullseye # this one is used in dev commands: - go mod tidy - make build @@ -80,7 +80,7 @@ name: Production deploy steps: - name: build image: golang:1.17-buster # this one is used in production - #image: golang:1.17-bullseye # this one is used in sandbox + #image: golang:1.17-bullseye # this one is used in dev commands: - go mod tidy - make build diff --git a/apps/snapshots.go b/apps/snapshots.go index c32d167..9c3489a 100644 --- a/apps/snapshots.go +++ b/apps/snapshots.go @@ -21,9 +21,9 @@ const keySplitCharacter = ":" // Snapshot contains metadata about a single snapshot type Snapshot struct { - AppName string - TimeStamp int64 - Labels []string + AppName string `json:"app_name"` + TimeStamp int64 `json:"ts"` + Labels []string `json:"labels"` } // SnapshotIndexLine is struct holding information about a single snapshot