aws

package
v0.0.0-...-da4b68f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDynamoDataStore

func NewDynamoDataStore(logger *log.Logger, region string, datasetTable string, metadataTable string) (persistence.DataStore, error)

func NewS3FileStore

func NewS3FileStore(logger *log.Logger, region string, metadataBucket string) (persistence.FileStore, error)

Types

type DynamoDataStore

type DynamoDataStore struct {
	// contains filtered or unexported fields
}

func (DynamoDataStore) CheckDatasetIdExists

func (d DynamoDataStore) CheckDatasetIdExists(datasetId string) (bool, error)

func (DynamoDataStore) GetDataset

func (d DynamoDataStore) GetDataset(datasetId string) (model.Dataset, error)

func (DynamoDataStore) GetMetadata

func (d DynamoDataStore) GetMetadata(datasetId string, metadataId string) (model.Metadata, error)

func (DynamoDataStore) ListDatasets

func (d DynamoDataStore) ListDatasets() ([]model.Dataset, error)

func (DynamoDataStore) ListMetadata

func (d DynamoDataStore) ListMetadata(datasetId string) ([]model.Metadata, error)

func (DynamoDataStore) PersistDataset

func (d DynamoDataStore) PersistDataset(dataset model.Dataset) (err error)

func (DynamoDataStore) PersistMetadata

func (d DynamoDataStore) PersistMetadata(metadata model.Metadata) (err error)

type S3FileStore

type S3FileStore struct {
	// contains filtered or unexported fields
}

func (S3FileStore) RetrieveMetadata

func (f S3FileStore) RetrieveMetadata(key string) (string, error)

func (S3FileStore) StoreMetadata

func (f S3FileStore) StoreMetadata(key string, bodyJson string) (string, error)

Jump to

Keyboard shortcuts

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