database

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDb

type ClusterDb struct {
	Name    string              `json:"name,hash"`
	Cluster *registryv1.Cluster `json:"crd,hash"`
}

ClusterDb encapsulates the Cluster CRD

type Db

type Db interface {
	GetCluster(name string) (*registryv1.Cluster, error)
	ListClusters(region string, environment string, businessUnit string, status string) ([]registryv1.Cluster, int, error)
	PutCluster(cluster *registryv1.Cluster) error
	DeleteCluster(name string) error
}

Db provides an interface for interacting with dynamonDb

func NewDb

func NewDb(m monitoring.MetricsI) Db

NewDb func

Jump to

Keyboard shortcuts

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