Documentation
¶
Overview ¶
Bundles of markdown files in and out of Postgres, ported from 2de90d2:src/keepsake/cli/__init__.py.
Package cli is the operator commands, ported from 2de90d2:src/keepsake/cli/__init__.py.
Index ¶
- func EnvPort() int
- func ExportBundle(ctx context.Context, cs *store.ConceptStore, tenant uuid.UUID, root string) (int, error)
- func ImportBundle(ctx context.Context, cs *store.ConceptStore, tenant uuid.UUID, root string) (int, error)
- func Main(args []string, stdout, stderr io.Writer) int
- func ValidateBundle(root string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvPort ¶
func EnvPort() int
EnvPort is $KEEPSAKE_PORT, or 8000 for anything else, such as the service link kubelet injects.
func ExportBundle ¶
func ExportBundle(ctx context.Context, cs *store.ConceptStore, tenant uuid.UUID, root string) (int, error)
ExportBundle writes the corpus out as a bundle, index and log included.
func ImportBundle ¶
func ImportBundle(ctx context.Context, cs *store.ConceptStore, tenant uuid.UUID, root string) (int, error)
ImportBundle stores the whole bundle in one transaction, all or nothing.
func ValidateBundle ¶
ValidateBundle returns every rule the bundle breaks: per-concept errors plus links to nothing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.