Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
type Diff struct {
Component string `json:"component"`
Action string `json:"action"`
Target string `json:"target"`
Current string `json:"current"`
Proposed string `json:"proposed"`
Risk string `json:"risk"`
}
func Compare ¶
func Compare(live, target SchemaSpec) []Diff
type SchemaSpec ¶
type SchemaSpec struct {
Collections map[string]struct{}
Indexes map[string]map[string]IndexSpec
Validators map[string]ValidatorSpec
}
func FromRegistry ¶
func FromRegistry() SchemaSpec
FromRegistry builds the desired schema spec from in-code registries.
func InspectLive ¶
func NewSchemaSpec ¶
func NewSchemaSpec() SchemaSpec
Click to show internal directories.
Click to hide internal directories.