storage

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterToBlob

func ClusterToBlob(clusterID string, activeID string) (blobstore.Blob, error)

ClusterToBlob converts a clusterID and activeID to a Blobstore blob

func HealthToBlob

func HealthToBlob(gatewayID string, healthStats *fegprotos.HealthStats) (blobstore.Blob, error)

HealthToBlob converts a gatewayID and healthStats proto to a Blobstore blob

Types

type HealthBlobstore

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
}

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.

func NewHealthBlobstore

func NewHealthBlobstore(factory blobstore.BlobStorageFactory) (HealthBlobstore, error)

NewHealthBlobstore creates a new HealthBlobstore using the provided blobstore factory for the underlying storage functionality.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL