Documentation
¶
Index ¶
- func CheckConfig(c *kli.CommandContext) error
- func ConfigFingerprint(c *kli.CommandContext) error
- func ExportDecrypt(c *kli.CommandContext) error
- func FunctionsTypes(c *kli.CommandContext) error
- func ListDatabases(c *kli.CommandContext) error
- func OpenAPICommand(c *kli.CommandContext) error
- func RulesTest(c *kli.CommandContext) error
- func TemplateCollectionPolicy(c *kli.CommandContext) error
- func TemplateDatabase(c *kli.CommandContext) error
- func TemplateEmailCapture(c *kli.CommandContext) error
- func TemplateFunction(c *kli.CommandContext) error
- func TemplateProject(c *kli.CommandContext) error
- func TemplateRealm(c *kli.CommandContext) error
- func TypesCommand(c *kli.CommandContext) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfig ¶
func CheckConfig(c *kli.CommandContext) error
checkConfig and configFingerprint handle `backd config check|fingerprint`. They need only CONFIG_DIR.
func ConfigFingerprint ¶
func ConfigFingerprint(c *kli.CommandContext) error
func ExportDecrypt ¶
func ExportDecrypt(c *kli.CommandContext) error
exportDecrypt handles `backd export-decrypt`: a copy of a package with some encrypted fields opened, made offline.
func FunctionsTypes ¶
func FunctionsTypes(c *kli.CommandContext) error
func ListDatabases ¶
func ListDatabases(c *kli.CommandContext) error
listDatabases handles `backd databases [--collections]`: it prints the MongoDB databases the config uses, data databases and realm system databases, sorted; with --collections, every collection as <database>.<collection>. It needs only CONFIG_DIR, so deploy scripts can grant a least-privilege user access to exactly these.
func OpenAPICommand ¶
func OpenAPICommand(c *kli.CommandContext) error
openapiCommand handles `backd openapi`: it generates a realm's OpenAPI document from the local CONFIG_DIR, to standard output or --out, or with --check compares the file.
func RulesTest ¶
func RulesTest(c *kli.CommandContext) error
rulesTest handles `backd rules test`: it runs every collection's rules.test.yaml against its rules, with no database. Needs only CONFIG_DIR.
func TemplateCollectionPolicy ¶
func TemplateCollectionPolicy(c *kli.CommandContext) error
func TemplateDatabase ¶
func TemplateDatabase(c *kli.CommandContext) error
func TemplateEmailCapture ¶
func TemplateEmailCapture(c *kli.CommandContext) error
func TemplateFunction ¶
func TemplateFunction(c *kli.CommandContext) error
func TemplateProject ¶
func TemplateProject(c *kli.CommandContext) error
func TemplateRealm ¶
func TemplateRealm(c *kli.CommandContext) error
templateRealm, templateDatabase, templateFunction and templateProject handle `backd template ...`: they write files under CONFIG_DIR (the project template, a whole directory) and list what they created.
func TypesCommand ¶
func TypesCommand(c *kli.CommandContext) error
typesCommand handles `backd types`: it generates a realm's TypeScript types from the local CONFIG_DIR, or from a running instance with --from, and writes them, or checks or diffs them against the files already there.
Types ¶
This section is empty.