config

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Datasets        []Dataset        `yaml:"datasets" json:"datasets"`
	DataConnections []DataConnection `yaml:"data_connections" json:"data_connections"`
	Workflows       []Workflow       `yaml:"workflows" json:"workflows"`
}

func (*Config) Hash added in v0.2.2

func (c *Config) Hash() string

func (*Config) JSON added in v0.2.2

func (c *Config) JSON() []byte

func (*Config) Parse

func (c *Config) Parse(content []byte, dir string) error

func (*Config) String

func (c *Config) String() string

type DataConnection added in v0.2.0

type DataConnection struct {
	ID               string `yaml:"id" json:"id"`
	Type             string `yaml:"type" json:"type"`
	Path             string `yaml:"path" json:"path"`
	ConnectionString string `yaml:"connection_string" json:"connection_string"`
}

func (*DataConnection) ExpandConnectionString added in v0.2.0

func (dc *DataConnection) ExpandConnectionString()

type DataSource

type DataSource struct {
	ID             string `yaml:"id" json:"id"`
	DataConnection string `yaml:"data_connection" json:"data_connection"`
	Query          string `yaml:"query" json:"query"`
}

type Dataset added in v0.2.0

type Dataset struct {
	ID         string      `yaml:"id" json:"id"`
	Refresh    *Refresh    `yaml:"refresh" json:"refresh"`
	DataSource *DataSource `yaml:"data_source" json:"data_source"`
	Joins      []Join      `yaml:"joins" json:"joins"`
}

type Join

type Join struct {
	Type       string        `yaml:"type" json:"type"`
	Columns    []JoinColumns `yaml:"columns" json:"columns"`
	DataSource *DataSource   `yaml:"data_source" json:"data_source"`
}

type JoinColumns

type JoinColumns struct {
	LeftColumn  string `yaml:"left_column" json:"left_column"`
	RightColumn string `yaml:"right_column" json:"right_column"`
}

type Refresh added in v0.2.0

type Refresh struct {
	Interval string `yaml:"interval" json:"interval"`
}

type Workflow added in v0.2.0

type Workflow struct {
	ID    string                   `yaml:"id" json:"id"`
	Start string                   `yaml:"start" json:"start"`
	On    *WorkflowTrigger         `yaml:"on" json:"on"`
	Tasks map[string]*WorkflowTask `yaml:"tasks" json:"tasks"`
}

func (*Workflow) Parse added in v0.2.0

func (w *Workflow) Parse(content []byte) error

func (Workflow) String added in v0.2.0

func (w Workflow) String() string

type WorkflowTask added in v0.2.0

type WorkflowTask struct {
	Next string `yaml:"next,omitempty" json:"next,omitempty"`

	Type         string                 `yaml:"type" json:"type"`
	Env          map[string]string      `yaml:"env" json:"env"`
	With         map[string]interface{} `yaml:"with" json:"with"`
	WithDatasets []string               `yaml:"with_datasets" json:"with_datasets"`

	Image  string `yaml:"image,omitempty" json:"image,omitempty"` // for "container" type
	Script string `yaml:"script,omitempty" json:"script,omitempty"`
}

type WorkflowTrigger added in v0.2.0

type WorkflowTrigger struct {
	DatasetRefresh []string `yaml:"dataset_refresh" json:"dataset_refresh"`
}

Jump to

Keyboard shortcuts

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