sources

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	SourceWithNormalFields `yaml:",inline"`
	Tables                 yaml.Node `yaml:"tables"`
	Functions              yaml.Node `yaml:"functions,omitempty"`
}

type SourceConfig

type SourceConfig struct {
	MetadataDir string
	// contains filtered or unexported fields
}

func New

func New(ec *cli.ExecutionContext, baseDir string) *SourceConfig

func (*SourceConfig) BaseDirectory

func (t *SourceConfig) BaseDirectory() string

func (*SourceConfig) Build

func (t *SourceConfig) Build() (map[string]interface{}, metadataobject.ErrParsingMetadataObject)

func (*SourceConfig) CreateFiles

func (t *SourceConfig) CreateFiles() error

func (*SourceConfig) Export

func (t *SourceConfig) Export(metadata map[string]yaml.Node) (map[string][]byte, metadataobject.ErrParsingMetadataObject)

func (*SourceConfig) Filename

func (t *SourceConfig) Filename() string

func (*SourceConfig) GetFiles

func (*SourceConfig) Key

func (t *SourceConfig) Key() string

func (*SourceConfig) Validate

func (t *SourceConfig) Validate() error

type SourceWithNormalFields

type SourceWithNormalFields struct {
	Name          string    `yaml:"name"`
	Kind          string    `yaml:"kind"`
	Configuration yaml.Node `yaml:"configuration"`
	QueryTags     yaml.Node `yaml:"query_tags,omitempty"`
	Customization yaml.Node `yaml:"customization,omitempty"`
}

Jump to

Keyboard shortcuts

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