Documentation
¶
Index ¶
- Constants
- type DataSet
- func (d *DataSet) CueDataPath() cue.Path
- func (d *DataSet) GetDataDirectory() string
- func (d *DataSet) GetDataMapCue() string
- func (d *DataSet) GetDefinitionPath() cue.Path
- func (d *DataSet) GetInlinePath() string
- func (d *DataSet) GetSupportedExtensions() []string
- func (d *DataSet) ID() string
- func (d *DataSet) IsSupportedExtension(ext string) bool
- type DataSetMetadata
- type Runtime
- func (r *Runtime) CountDataSets() int
- func (r *Runtime) GetDataSet(name string) (DataSet, error)
- func (r *Runtime) GetDataSets() map[string]DataSet
- func (r *Runtime) GetOutput() (cue.Value, error)
- func (r *Runtime) GetString(key string) (string, error)
- func (r *Runtime) GetStringOr(key string, def string) string
- func (r *Runtime) Insert(dataSet DataSet, record map[string]interface{}) error
- func (r *Runtime) LoadConfig() error
- func (r *Runtime) MarshalJSON() ([]byte, error)
- func (r *Runtime) ReferentialIntegrity() error
- func (r *Runtime) RegisterSchema(cueString string) error
- type SchemaMetadata
Constants ¶
View Source
const DataSetMetadataCue = `{
_dataset: {
plural: string
supportedExtensions: [...string]
}
}`
Can't use dataSetField, yet.
View Source
const RecordBaseCue = `{
id: string
}`
RecordBaseCue is the "Base" configuration that blox expects to exist, but doesn't enforce in user-land. We'll inject this Cue into each DataSet definition.
View Source
const SchemaMetadataCue = `{
_schema: {
namespace: string
name: string
}
}`
Can't use schemaField, yet.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSet ¶ added in v0.2.7
type DataSet struct {
// contains filtered or unexported fields
}
func (*DataSet) CueDataPath ¶ added in v0.2.7
func (*DataSet) GetDataDirectory ¶ added in v0.2.7
func (*DataSet) GetDefinitionPath ¶ added in v0.2.7
func (*DataSet) GetInlinePath ¶ added in v0.2.7
GetInlinePath returns an inline cue.Path that can be used within a Cue document like "some: key: #Here"
func (*DataSet) GetSupportedExtensions ¶ added in v0.2.7
func (*DataSet) IsSupportedExtension ¶ added in v0.2.7
type DataSetMetadata ¶ added in v0.2.7
type Runtime ¶ added in v0.2.7
type Runtime struct {
// contains filtered or unexported fields
}
func NewRuntime ¶ added in v0.2.7
NewRuntime setups a new database for DataSets to be registered, and data inserted.
func (*Runtime) CountDataSets ¶ added in v0.2.7
func (*Runtime) GetDataSet ¶ added in v0.2.7
func (*Runtime) GetDataSets ¶ added in v0.2.7
func (*Runtime) GetStringOr ¶ added in v0.2.7
func (*Runtime) LoadConfig ¶ added in v0.2.7
func (*Runtime) MarshalJSON ¶ added in v0.2.7
MarshalJSON returns the database encoded in JSON format
func (*Runtime) ReferentialIntegrity ¶ added in v0.2.7
ReferentialIntegrity checks the relationships between the records in the content database
func (*Runtime) RegisterSchema ¶ added in v0.2.7
type SchemaMetadata ¶ added in v0.2.7
Click to show internal directories.
Click to hide internal directories.