a9640f59e1cb2fc5067c4bb9c3d7863a85f4543e
[icn/sdwan.git] /
1 // SPDX-License-Identifier: Apache-2.0
2 // Copyright (c) 2020 Intel Corporation
3
4 package resourcestatus
5
6 // ResourceStatus struct is used to maintain the rsync status for resources in the appcontext
7 // that rsync is synchronizing to clusters
8 type ResourceStatus struct {
9         Status RsyncStatus
10 }
11
12 type RsyncStatus = string
13
14 type statusValues struct {
15         Pending  RsyncStatus
16         Applied  RsyncStatus
17         Failed   RsyncStatus
18         Retrying RsyncStatus
19         Deleted  RsyncStatus
20 }
21
22 var RsyncStatusEnum = &statusValues{
23         Pending:  "Pending",
24         Applied:  "Applied",
25         Failed:   "Failed",
26         Retrying: "Retrying",
27         Deleted:  "Deleted",
28 }