cli/cmd/types.go (30 lines of code) (raw):

// Copyright (c) 2022 EPAM Systems, Inc. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. package cmd import "time" type Phase struct { Phase string `json:"phase"` Status string `json:"status"` } type LatestOP struct { Name string `json:"name"` Status string `json:"status"` Initiator string `json:"initiator"` Timestamp time.Time `json:"timestamp"` Phases []Phase `json:"phases"` } type Component struct { Name string `json:"name"` Status string `json:"status"` Timestamp time.Time `json:"timestamp"` } type StateLocation struct { Uri string `json:"uri"` Kind string `json:"kind"` } type State struct { ID string `json:"id"` Name string `json:"name"` Status string `json:"status"` LatestOP LatestOP `json:"latestOperation"` StateLocation StateLocation `json:"stateLocation"` Components []Component `json:"components"` }