-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register those modules: 1. github.com/layeh/gopher-json - encode: expect a lua table, return the JSON encoded string - decode: expect a JSON encoded string, return a Lua table - to use this: . local ison = require("json") . encoded = json.encode(luaTable) 2. github.com/chai2010/glua-strings - Compare - Contains - HasPrefix - HasSuffix - Join - Replace - Split - ToLower - ToUpper - ... and more - to use this: . local strings = require("strings") . strings.ToUpper("mystring") Register following methods: - base64Encode: accept a string return, base64 encoded string - base64Decode: accept a base64 encoded string, return the decoded version - getLabel: lua Table representing a Kubernetes resource and a key, return label value (nil if key is not set) - getAnnotation: lua Table representing a Kubernetes resource and a key, return annotation value (nil if key is not set)
- Loading branch information
1 parent
a4c7de0
commit 480f5e7
Showing
3 changed files
with
404 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.