gcredstash

package
v0.2.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	VERSION_FORMAT = "%019d"
)

Variables

This section is empty.

Functions

func Atoi added in v0.2.0

func Atoi(str string) int

func B64Decode added in v0.2.0

func B64Decode(encoded string) []byte

func B64DecodeStr added in v0.2.0

func B64DecodeStr(encoded string) string

func B64Encode added in v0.2.0

func B64Encode(decoded []byte) string

func B64EncodeStr added in v0.2.0

func B64EncodeStr(decoded string) string

func Crypt added in v0.2.0

func Crypt(contents []byte, key []byte) []byte

func Digest added in v0.2.0

func Digest(message []byte, key []byte) []byte

func HasOption added in v0.1.2

func HasOption(args []string, opt string) ([]string, bool)

func HexDecode added in v0.2.0

func HexDecode(encoded string) []byte

func HexDecodeStr added in v0.2.0

func HexDecodeStr(encoded string) string

func HexEncode added in v0.2.0

func HexEncode(decoded []byte) string

func HexEncodeStr added in v0.2.0

func HexEncodeStr(decoded string) string

func KmsDecrypt added in v0.2.0

func KmsDecrypt(svc kmsiface.KMSAPI, blob []byte, context map[string]string) ([]byte, []byte, error)

func KmsGenerateDataKey added in v0.2.0

func KmsGenerateDataKey(svc kmsiface.KMSAPI, keyId string, context map[string]string) ([]byte, []byte, []byte, error)

func MapToJson added in v0.2.0

func MapToJson(m map[string]string) string

func MaxKeyLen added in v0.2.0

func MaxKeyLen(items map[*string]*string) int

func ParseContext added in v0.2.0

func ParseContext(strs []string) (map[string]string, error)

func ParseOptionWithValue added in v0.2.0

func ParseOptionWithValue(args []string, key string) ([]string, string, error)

func ParseVersion added in v0.2.0

func ParseVersion(args []string) ([]string, string, error)

func ReadFile added in v0.2.1

func ReadFile(filename string) (string, error)

func ReadStdin added in v0.2.0

func ReadStdin() string

func ValidateHMAC added in v0.2.0

func ValidateHMAC(message []byte, digest []byte, key []byte) bool

func VersionNumToStr added in v0.2.0

func VersionNumToStr(version int) string

Types

type Driver added in v0.2.0

type Driver struct {
	Ddb dynamodbiface.DynamoDBAPI
	Kms kmsiface.KMSAPI
}

func (*Driver) CreateDdbTable added in v0.2.0

func (driver *Driver) CreateDdbTable(table string) error

func (*Driver) CreateTable added in v0.2.0

func (driver *Driver) CreateTable(table string) error

func (*Driver) DecryptMaterial added in v0.2.0

func (driver *Driver) DecryptMaterial(name string, material map[string]*dynamodb.AttributeValue, context map[string]string) (string, error)

func (*Driver) DeleteItem added in v0.2.0

func (driver *Driver) DeleteItem(name string, version string, table string) error

func (*Driver) DeleteSecrets added in v0.2.0

func (driver *Driver) DeleteSecrets(name string, version string, table string) error

func (*Driver) GetDeleteTargetWithVersion added in v0.2.0

func (driver *Driver) GetDeleteTargetWithVersion(name string, version string, table string) (map[*string]*string, error)

func (*Driver) GetDeleteTargetWithoutVersion added in v0.2.0

func (driver *Driver) GetDeleteTargetWithoutVersion(name string, table string) (map[*string]*string, error)

func (*Driver) GetHighestVersion added in v0.2.0

func (driver *Driver) GetHighestVersion(name string, table string) (int, error)

func (*Driver) GetMaterialWithVersion added in v0.2.0

func (driver *Driver) GetMaterialWithVersion(name string, version string, table string) (map[string]*dynamodb.AttributeValue, error)

func (*Driver) GetMaterialWithoutVersion added in v0.2.0

func (driver *Driver) GetMaterialWithoutVersion(name string, table string) (map[string]*dynamodb.AttributeValue, error)

func (*Driver) GetSecret added in v0.2.0

func (driver *Driver) GetSecret(name string, version string, table string, context map[string]string) (string, error)

func (*Driver) IsTableExists added in v0.2.0

func (driver *Driver) IsTableExists(table string) (bool, error)

func (*Driver) ListSecrets added in v0.2.0

func (driver *Driver) ListSecrets(table string) (map[*string]*string, error)

func (*Driver) PutItem added in v0.2.0

func (driver *Driver) PutItem(name string, version string, key []byte, contents []byte, hmac []byte, table string) error

func (*Driver) PutSecret added in v0.2.0

func (driver *Driver) PutSecret(name string, secret string, version string, kmsKey string, table string, context map[string]string) error

func (*Driver) WaitUntilTableExists added in v0.2.0

func (driver *Driver) WaitUntilTableExists(table string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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