blox

package module
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 4 Imported by: 2

README

Blox

Blox is the CLI for working with CueBlox.

What is Blox?

See our rapidly-evolving documentation here

Vocabulary

Blox

A Blox is a collection of DataSets, grouped into a Schema, and distributed as a repository.

DataSet

A DataSet defines something

Schema

A Schema is a Cue file definition of one or more DataSets, with some metadata to help connect some dots for the blox CLI.

Repository

Collection of schemas, distributed via HTTP with a manifest.json. Can be downloaded by the blox CLI.

Shoulders of Giants

Blox would not be possible if not for all of the great projects it depends on. Please see SHOULDERS.md to see a list of them.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(base string) (*Config, error)

New setup a new config type with base as the defaults

func (*Config) GetString

func (r *Config) GetString(key string) (string, error)

func (*Config) GetStringOr

func (r *Config) GetStringOr(key string, def string) string

func (*Config) LoadConfig

func (r *Config) LoadConfig(path string) error

LoadConfig opens the configuration file specified in `path` and validates it against the configuration provided in when the `Engine` was initialized with `New()`

func (*Config) LoadConfigString

func (r *Config) LoadConfigString(cueConfig string) error

type Runtime

type Runtime struct {
	CueRuntime *cue.Runtime
	Database   cue.Value
}

func NewRuntime

func NewRuntime() (*Runtime, error)

NewRuntime creates a new runtime engine

func NewRuntimeWithBase

func NewRuntimeWithBase(base string) (*Runtime, error)

NewRuntimeWithBase creates a new runtime engine with the cue provided in `base` as the initial cue values

Directories

Path Synopsis
cli
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL