MCPcopy Create free account

hub / github.com/codahale/sneaker / functions

Functions42 in github.com/codahale/sneaker

↓ 5 callersMethodList
List returns a list of files which match the given pattern, or if the pattern is blank, all files.
list.go:14
↓ 5 callersFunctionopenPath
(file string, o func(string) (*os.File, error), def *os.File)
cmd/sneaker/main.go:250
↓ 4 callersMethodDownload
Download fetches and decrypts the given secrets.
download.go:12
↓ 4 callersMethodOpen
Open takes the output of Seal and decrypts it. If any part of the ciphertext or context is modified, Seal will return an error instead of the decrypte
envelope.go:45
↓ 4 callersMethodSeal
Seal generates a 256-bit data key using KMS and encrypts the given plaintext with AES-256-GCM using a random nonce. The ciphertext is appended to the
envelope.go:24
↓ 3 callersMethodUpload
Upload encrypts the given secret with a KMS data key and uploads it to S3.
upload.go:14
↓ 3 callersFunctiondecrypt
(key, ciphertext, data []byte)
envelope.go:72
↓ 3 callersFunctionparseContext
(s string)
cmd/sneaker/main.go:234
↓ 2 callersMethodPack
Pack puts the given secrets into a TAR file and encrypts that with a new KMS data key with the context. The result is written into the given writer.
pack.go:13
↓ 2 callersMethodRm
Rm deletes the given secret.
rm.go:11
↓ 2 callersMethodRotate
Rotate downloads all of the secrets whose paths match the given pattern, decrypts them, re-encrypts them with new data keys, and re-uploads them.
rotate.go:7
↓ 2 callersMethodUnpack
Unpack decrypts the secrets using KMS and the given context, returning an io.Reader containing a TAR file with all the secrets.
unpack.go:11
↓ 2 callersMethodcontext
(c map[string]string)
envelope.go:64
↓ 2 callersMethodcontext
(path string)
sneaker.go:46
↓ 2 callersFunctionencrypt
(key, plaintext, data []byte)
envelope.go:90
↓ 2 callersFunctionfromAWS
(m map[string]*string)
packaging_test.go:103
↓ 2 callersFunctionzero
(b []byte)
envelope.go:124
↓ 1 callersMethodDecrypt
(*kms.DecryptInput)
sneaker.go:26
↓ 1 callersMethodDeleteObject
(*s3.DeleteObjectInput)
sneaker.go:18
↓ 1 callersMethodGenerateDataKey
(*kms.GenerateDataKeyInput)
sneaker.go:25
↓ 1 callersMethodGetObject
(*s3.GetObjectInput)
sneaker.go:20
↓ 1 callersMethodListObjects
(*s3.ListObjectsInput)
sneaker.go:17
↓ 1 callersMethodPutObject
(*s3.PutObjectInput)
sneaker.go:19
↓ 1 callersFunctionjoin
(a, b []byte)
envelope.go:111
↓ 1 callersFunctionloadManager
()
cmd/sneaker/main.go:208
↓ 1 callersFunctionmatch
(pattern, name string)
list.go:51
↓ 1 callersFunctionsplit
(v []byte)
envelope.go:119
MethodDecrypt
(req *kms.DecryptInput)
fake_kms_test.go:20
MethodDeleteObject
(req *s3.DeleteObjectInput)
fake_s3_test.go:26
MethodGenerateDataKey
(req *kms.GenerateDataKeyInput)
fake_kms_test.go:13
MethodGetObject
(req *s3.GetObjectInput)
fake_s3_test.go:40
MethodListObjects
(req *s3.ListObjectsInput)
fake_s3_test.go:19
MethodPutObject
(req *s3.PutObjectInput)
fake_s3_test.go:33
FunctionTestDownload
(t *testing.T)
download_test.go:14
FunctionTestEnvelopeRoundTrip
(t *testing.T)
envelope_test.go:11
FunctionTestListNoPattern
(t *testing.T)
list_test.go:83
FunctionTestListPattern
(t *testing.T)
list_test.go:12
FunctionTestPackagingRoundTrip
(t *testing.T)
packaging_test.go:15
FunctionTestRm
(t *testing.T)
rm_test.go:9
FunctionTestRotate
(t *testing.T)
rotate_test.go:14
FunctionTestUpload
(t *testing.T)
upload_test.go:14
Functionmain
()
cmd/sneaker/main.go:42