Documentation ¶
Index ¶
- Constants
- func Atoi(str string) int
- func B64Decode(encoded string) []byte
- func B64DecodeStr(encoded string) string
- func B64Encode(decoded []byte) string
- func B64EncodeStr(decoded string) string
- func Crypt(contents []byte, key []byte) []byte
- func Digest(message []byte, key []byte) []byte
- func HasOption(args []string, opt string) ([]string, bool)
- func HexDecode(encoded string) []byte
- func HexDecodeStr(encoded string) string
- func HexEncode(decoded []byte) string
- func HexEncodeStr(decoded string) string
- func KmsDecrypt(svc kmsiface.KMSAPI, blob []byte, context map[string]string) ([]byte, []byte, error)
- func KmsGenerateDataKey(svc kmsiface.KMSAPI, keyId string, context map[string]string) ([]byte, []byte, []byte, error)
- func MapToJson(m map[string]string) string
- func MaxKeyLen(items map[*string]*string) int
- func ParseContext(strs []string) (map[string]string, error)
- func ParseOptionWithValue(args []string, key string) ([]string, string, error)
- func ParseVersion(args []string) ([]string, string, error)
- func ReadFile(filename string) (string, error)
- func ReadStdin() string
- func ValidateHMAC(message []byte, digest []byte, key []byte) bool
- func VersionNumToStr(version int) string
- type Driver
- func (driver *Driver) CreateDdbTable(table string) error
- func (driver *Driver) CreateTable(table string) error
- func (driver *Driver) DecryptMaterial(name string, material map[string]*dynamodb.AttributeValue, ...) (string, error)
- func (driver *Driver) DeleteItem(name string, version string, table string) error
- func (driver *Driver) DeleteSecrets(name string, version string, table string) error
- func (driver *Driver) GetDeleteTargetWithVersion(name string, version string, table string) (map[*string]*string, error)
- func (driver *Driver) GetDeleteTargetWithoutVersion(name string, table string) (map[*string]*string, error)
- func (driver *Driver) GetHighestVersion(name string, table string) (int, error)
- func (driver *Driver) GetMaterialWithVersion(name string, version string, table string) (map[string]*dynamodb.AttributeValue, error)
- func (driver *Driver) GetMaterialWithoutVersion(name string, table string) (map[string]*dynamodb.AttributeValue, error)
- func (driver *Driver) GetSecret(name string, version string, table string, context map[string]string) (string, error)
- func (driver *Driver) IsTableExists(table string) (bool, error)
- func (driver *Driver) ListSecrets(table string) (map[*string]*string, error)
- func (driver *Driver) PutItem(name string, version string, key []byte, contents []byte, hmac []byte, ...) error
- func (driver *Driver) PutSecret(name string, secret string, version string, kmsKey string, table string, ...) error
- func (driver *Driver) WaitUntilTableExists(table string) error
Constants ¶
View Source
const (
VERSION_FORMAT = "%019d"
)
Variables ¶
This section is empty.
Functions ¶
func B64DecodeStr ¶
func B64EncodeStr ¶
func HexDecodeStr ¶
func HexEncodeStr ¶
func KmsDecrypt ¶
func KmsGenerateDataKey ¶
func ParseOptionWithValue ¶
func VersionNumToStr ¶
Types ¶
type Driver ¶
type Driver struct { Ddb dynamodbiface.DynamoDBAPI Kms kmsiface.KMSAPI }
func (*Driver) CreateDdbTable ¶
func (*Driver) CreateTable ¶
func (*Driver) DecryptMaterial ¶
func (*Driver) DeleteItem ¶
func (*Driver) DeleteSecrets ¶
func (*Driver) GetDeleteTargetWithVersion ¶
func (*Driver) GetDeleteTargetWithoutVersion ¶
func (*Driver) GetHighestVersion ¶
func (*Driver) GetMaterialWithVersion ¶
func (*Driver) GetMaterialWithoutVersion ¶
func (*Driver) ListSecrets ¶
func (*Driver) WaitUntilTableExists ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.