dao

package
v0.0.0-...-dc1866d Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO interface {
	GetLatestVersion(string) (*SecretRecord, error)
	GetSecretRecord(string, int64) (*SecretRecord, error)
	PutSecretRecord(*SecretRecord) error
	RevokeSecretRecord(string, int64) error
}

DAO defines the interface to interact with the Data Access Layer for accessing secrets

func NewDAO

func NewDAO(appName string, dynamodbClient ddbclient.Client) DAO

NewDAO creates a new DAO object backed by DynamoDB

type SecretRecord

type SecretRecord struct {
	Name             string
	Serial           int64
	EncryptedData    string
	EncryptedDataKey string
	Active           bool
}

SecretRecord defines the payload used to interact with DynamoDB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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