Documentation ¶
Index ¶
- type Source
- type SourceConfig
- func (t *SourceConfig) BaseDirectory() string
- func (t *SourceConfig) Build() (map[string]interface{}, error)
- func (t *SourceConfig) CreateFiles() error
- func (t *SourceConfig) Export(metadata map[string]yaml.Node) (map[string][]byte, error)
- func (t *SourceConfig) Filename() string
- func (t *SourceConfig) GetFiles() ([]string, error)
- func (t *SourceConfig) Key() string
- func (t *SourceConfig) Validate() error
- func (t *SourceConfig) WriteDiff(opts metadataobject.WriteDiffOpts) error
- type SourceWithNormalFields
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"` LogicalModels yaml.Node `yaml:"logical_models,omitempty"` NativeQueries yaml.Node `yaml:"native_queries,omitempty"` StoredProcedures yaml.Node `yaml:"stored_procedures,omitempty"` }
Click to show internal directories.
Click to hide internal directories.