data

package
v0.0.0-...-9adc65a Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// SaveFiles should take the provided registry file and save it associated with the provided cluster/channel
	SaveFiles(cluster, channel string, files []*registrygrpc.File) error
	// SetChannelMessage associates the root message for the channel
	SetChannelMessage(cluster, channel, message string) error
	// GetChannelData returns the root message and and proto files for the channel
	GetChannelData(cluster, channel string) (string, []*registrygrpc.File, error)
	// SaveChannelData sets (overwrites) all the relevant data for a channel
	SaveChannelData(cluster, channel, message string, files []*registrygrpc.File) error
	// GetChannels returns a list of channels the registry has data for
	GetChannels(cluster string) ([]string, error)
	// SaveCluster saves configuration data for a cluster
	SaveCluster(cluster *registrygrpc.Cluster) (string, error)
	// GetCluster returns the configuration data for a cluster
	GetCluster(id string) (*registrygrpc.Cluster, error)
	// GetClusters returns all cluster configurations
	GetClusters() ([]*registrygrpc.Cluster, error)
}

Store interface for the registry data

func NewDynamodb

func NewDynamodb(session *session.Session, endpoint, tablePrefix string, l golog.Logger) Store

Jump to

Keyboard shortcuts

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