-
Notifications
You must be signed in to change notification settings - Fork 1
/
storage.go
29 lines (23 loc) · 1.14 KB
/
storage.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package storage
import "github.com/go-magma/magma/modules/feg/cloud/go/protos"
// HealthBlobstore defines a storage interface for the health service. This
// interface defines create/update and read functionality while abstracting
// away any underlying storage transaction mechanics for clients.
type HealthBlobstore interface {
GetHealth(networkID string, gatewayID string) (*protos.HealthStats, error)
UpdateHealth(networkID string, gatewayID string, health *protos.HealthStats) error
GetClusterState(networkID string, clusterID string) (*protos.ClusterState, error)
UpdateClusterState(networkID string, clusterID string, logicalID string) error
}