sources

package
v2.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 12 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{}, error)

func (*SourceConfig) CreateFiles

func (t *SourceConfig) CreateFiles() error

func (*SourceConfig) Export

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

func (*SourceConfig) Filename

func (t *SourceConfig) Filename() string

func (*SourceConfig) GetFiles

func (t *SourceConfig) GetFiles() ([]string, error)

func (*SourceConfig) Key

func (t *SourceConfig) Key() string

func (*SourceConfig) Validate

func (t *SourceConfig) Validate() error

func (*SourceConfig) WriteDiff

func (t *SourceConfig) WriteDiff(opts metadataobject.WriteDiffOpts) 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"`
	HealthCheck   yaml.Node `yaml:"health_check,omitempty"`
}

Jump to

Keyboard shortcuts

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