Documentation ¶
Overview ¶
package datamodel - for modeling and managing that model
Index ¶
- func CalcDatamodelStepwiseDiff(dm *Datamodel) error
- func FindHistoryBaseDir() (string, error)
- func RunCheckpointFromArgs(args []string, bump string, flgs flags.DatamodelPflagpole) error
- func RunDiffFromArgs(args []string, flgs flags.DatamodelPflagpole) error
- func RunHistoryFromArgs(args []string, flgs flags.DatamodelPflagpole) error
- func RunInfoFromArgs(args []string, flgs flags.DatamodelPflagpole) error
- func RunListFromArgs(args []string, flgs flags.DatamodelPflagpole) error
- func RunLogFromArgs(args []string, flgs flags.DatamodelPflagpole) error
- type Common
- type Datamodel
- type Field
- type History
- type Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindHistoryBaseDir ¶
func RunCheckpointFromArgs ¶
func RunCheckpointFromArgs(args []string, bump string, flgs flags.DatamodelPflagpole) error
func RunDiffFromArgs ¶
func RunDiffFromArgs(args []string, flgs flags.DatamodelPflagpole) error
func RunHistoryFromArgs ¶
func RunHistoryFromArgs(args []string, flgs flags.DatamodelPflagpole) error
func RunInfoFromArgs ¶
func RunInfoFromArgs(args []string, flgs flags.DatamodelPflagpole) error
func RunListFromArgs ¶
func RunListFromArgs(args []string, flgs flags.DatamodelPflagpole) error
func RunLogFromArgs ¶
func RunLogFromArgs(args []string, flgs flags.DatamodelPflagpole) error
Types ¶
type Common ¶
type Common struct { // User set Name string Labels map[string]string // internally set Status string // should probably be an const [ok,dirty,no history] Label string // label from CUE Timestamp string // timestamp Version string // @dm_ver() Value cue.Value // this objects value Other cue.Value // the other value for diff Diff cue.Value // diff from other (checkpoint) Subsume error }
type Datamodel ¶
type Datamodel struct { Models map[string]*Model // filled fields OrderedModels []*Model History *History Common }
func LoadDatamodels ¶
func LoadDatamodels(entrypoints []string, flgs flags.DatamodelPflagpole) (dms []*Datamodel, err error)
func PrepDatamodels ¶
func PrepDatamodels(entrypoints []string, flgs flags.DatamodelPflagpole) (dms []*Datamodel, err error)
Click to show internal directories.
Click to hide internal directories.