MCPcopy Create free account

hub / github.com/alexandre-normand/safekeeper / functions

Functions15 in github.com/alexandre-normand/safekeeper

↓ 5 callersFunctionrun
(keys string, out string, inputPaths []string)
safekeeper.go:42
↓ 4 callersFunctionwriteGenerationDriverFile
writeGenerationDriverFile writes a file that drives the safekeeper generation (i.e. the go file that would include the go:generate command)
safekeeper_test.go:156
↓ 4 callersMethodwriteString
(value string)
safekeeper.go:26
↓ 3 callersFunctionwriteTestTemplate
writeTestTemplate writes a .safekeeper template file with two ENV variables: CLIENT_ID and CLIENT_SECRET
safekeeper_test.go:145
↓ 1 callersFunctionisFile
isFile reports whether the named file is a file (not a directory).
safekeeper.go:91
↓ 1 callersFunctionloadKeyValues
loadKeyValues loads all values for the keys specified via the command-line flag
safekeeper.go:77
↓ 1 callersFunctionopenTemplateFile
openTemplateFile opens the template source for the current file (by appending .safekeeper to the path)
safekeeper.go:130
↓ 1 callersFunctionsetupReplacers
setupReplacers creates a string replacer for each key/value pair
safekeeper.go:150
↓ 1 callersFunctionsubstituteValues
substituteValues replaces all occurences of keys in the source file by the env value of that key
safekeeper.go:101
↓ 1 callersFunctionwriteHeader
writeHeader writes the header of the file (code generation warning as well as the go:generate line)
safekeeper.go:137
FunctionExample
()
safekeeper_test.go:112
FunctionTestMissingEnvVariable
(t *testing.T)
safekeeper_test.go:12
FunctionTestMissingSafekeeperFile
(t *testing.T)
safekeeper_test.go:35
FunctionTestValidCase
(t *testing.T)
safekeeper_test.go:56
Functionmain
()
safekeeper.go:33