Documentation
¶
Index ¶
- Constants
- Variables
- func AddConnection() *cli.Command
- func ApplyAllFilters(ctx context.Context, f *Filter, s *scheduler.Scheduler, p *pipeline.Pipeline) error
- func AssetMetadata() *cli.Command
- func CheckLint(ctx context.Context, foundPipeline *pipeline.Pipeline, pipelinePath string, ...) error
- func Clean(str string) string
- func CleanCmd() *cli.Command
- func CloneEnvironment(isDebug *bool) *cli.Command
- func ConnectionSchemas() *cli.Command
- func Connections() *cli.Command
- func CreateEnvironment(isDebug *bool) *cli.Command
- func DBSummary() *cli.Command
- func DataDiffCmd() *cli.Command
- func DeleteConnection() *cli.Command
- func DeleteEnvironment(isDebug *bool) *cli.Command
- func DetermineStartDate(cliStartDate string, pipeline *pipeline.Pipeline, fullRefresh bool, ...) (time.Time, error)
- func Docs() *cli.Command
- func Environments(isDebug *bool) *cli.Command
- func FetchColumns() *cli.Command
- func FetchDatabases() *cli.Command
- func FetchTables() *cli.Command
- func FilterTaskTypes(ctx context.Context, f *Filter, s *scheduler.Scheduler, p *pipeline.Pipeline) error
- func Format(isDebug *bool) *cli.Command
- func GetPipelineAndAsset(ctx context.Context, inputPath string, fs afero.Fs, configFilePath string) (*ppInfo, error)
- func GetPipelinefromPath(ctx context.Context, inputPath string) (*pipeline.Pipeline, error)
- func HandleExcludeTags(ctx context.Context, f *Filter, s *scheduler.Scheduler, p *pipeline.Pipeline) error
- func HandleIncludeTags(ctx context.Context, f *Filter, s *scheduler.Scheduler, p *pipeline.Pipeline) error
- func HandleSingleTask(ctx context.Context, f *Filter, s *scheduler.Scheduler, p *pipeline.Pipeline) error
- func Import() *cli.Command
- func ImportDatabase() *cli.Command
- func ImportScheduledQueries() *cli.Command
- func ImportTableauDashboards() *cli.Command
- func Init() *cli.Command
- func Internal() *cli.Command
- func Lineage() *cli.Command
- func Lint(isDebug *bool) *cli.Command
- func ListConnections() *cli.Command
- func ListEnvironments(isDebug *bool) *cli.Command
- func ListTemplates() *cli.Command
- func NewRunID() string
- func ParseAsset() *cli.Command
- func ParseDate(startDateStr, endDateStr string, logger logger.Logger) (time.Time, time.Time, error)
- func ParseGlossary() *cli.Command
- func ParsePipeline() *cli.Command
- func Patch() *cli.Command
- func PatchAsset() *cli.Command
- func PatchPipeline() *cli.Command
- func PingConnection() *cli.Command
- func Query() *cli.Command
- func ReadState(fs afero.Fs, statePath string, filter *Filter) (*scheduler.PipelineState, error)
- func RecoverFromPanic()
- func Render() *cli.Command
- func Run(isDebug *bool) *cli.Command
- func SetupExecutors(s *scheduler.Scheduler, conn config.ConnectionAndDetailsGetter, ...) (map[pipeline.AssetType]executor.Config, error)
- func SkipAllTasksIfSingleCheck(ctx context.Context, f *Filter, s *scheduler.Scheduler, p *pipeline.Pipeline) error
- func Update() *cli.Command
- func UpdateEnvironment(isDebug *bool) *cli.Command
- func Validate(shouldvalidate bool, assetCounter assetCounter, lintChecker lintChecker, ...) error
- func ValidateRunConfig(runConfig *scheduler.RunConfig, inputPath string, logger logger.Logger) (time.Time, time.Time, string, error)
- func VersionCmd(commit string) *cli.Command
- type CleanCommand
- type ConnectionsCommand
- type EnvironmentCloneCommand
- type EnvironmentDeleteCommand
- type EnvironmentListCommand
- type EnvironmentUpdateCommand
- type ErrorResponse
- type ErrorResponses
- type ExecutionSummary
- type Filter
- type FilterMutator
- type Limiter
- type LineageCommand
- type ModifierInfo
- type ParseCommand
- type PipelineInfo
- type RenderCommand
- type ScheduledQuery
- type SuccessResponse
- type SummaryStats
- type TableComparer
- type TableauDashboard
- type TaskTypeStats
- type VersionInfo
- type WarningResponse
Constants ¶
View Source
const ( DefaultTemplate = "default" DefaultFolderName = "bruin-pipeline" )
View Source
const LogsFolder = "logs"
Variables ¶
View Source
var ( DefaultGlossaryReader = &glossary.GlossaryReader{ RepoFinder: &git.RepoFinder{}, FileNames: []string{"glossary.yml", "glossary.yaml"}, } DefaultPipelineBuilder = pipeline.NewBuilder(builderConfig, pipeline.CreateTaskFromYamlDefinition(fs), pipeline.CreateTaskFromFileComments(fs), fs, DefaultGlossaryReader) SeedAssetsValidator = &lint.SimpleRule{ Identifier: "assets-seed-validation", Fast: true, Severity: lint.ValidatorSeverityCritical, AssetValidator: lint.ValidateAssetSeedValidation, ApplicableLevels: []lint.Level{lint.LevelAsset}, } )
View Source
var ErrExcludeTagNotSupported = errors.New("exclude-tag flag is not supported for asset-only validation")
View Source
var PipelineDefinitionFiles = []string{"pipeline.yml", "pipeline.yaml"}
Functions ¶
func AddConnection ¶ added in v0.11.22
func ApplyAllFilters ¶ added in v0.11.169
func AssetMetadata ¶ added in v0.11.281
func CloneEnvironment ¶ added in v0.11.280
func ConnectionSchemas ¶ added in v0.11.55
func Connections ¶ added in v0.11.22
func CreateEnvironment ¶ added in v0.11.252
func DataDiffCmd ¶ added in v0.11.224
DataDiffCmd defines the 'data-diff' command.
func DeleteConnection ¶ added in v0.11.22
func DeleteEnvironment ¶ added in v0.11.254
func DetermineStartDate ¶ added in v0.11.296
func Environments ¶ added in v0.11.4
func FetchColumns ¶ added in v0.11.247
func FetchDatabases ¶ added in v0.11.247
func FetchTables ¶ added in v0.11.247
func FilterTaskTypes ¶ added in v0.11.169
func GetPipelineAndAsset ¶ added in v0.11.143
func GetPipelinefromPath ¶ added in v0.11.260
func HandleExcludeTags ¶ added in v0.11.169
func HandleIncludeTags ¶ added in v0.11.169
func HandleSingleTask ¶ added in v0.11.169
func ImportDatabase ¶ added in v0.11.260
func ImportScheduledQueries ¶ added in v0.11.280
func ImportTableauDashboards ¶ added in v0.11.304
func ListConnections ¶ added in v0.11.22
func ListEnvironments ¶ added in v0.11.4
func ListTemplates ¶ added in v0.11.278
func ParseAsset ¶ added in v0.10.1
func ParseGlossary ¶ added in v0.11.275
func ParsePipeline ¶ added in v0.11.16
func PatchAsset ¶ added in v0.11.27
func PatchPipeline ¶ added in v0.11.321
func PingConnection ¶ added in v0.11.106
func RecoverFromPanic ¶ added in v0.5.1
func RecoverFromPanic()
func SetupExecutors ¶ added in v0.11.216
func SetupExecutors( s *scheduler.Scheduler, conn config.ConnectionAndDetailsGetter, startDate, endDate time.Time, pipelineName string, runID string, fullRefresh bool, usePipForPython bool, sensorMode string, renderer *jinja.Renderer, parser *sqlparser.SQLParser, ) (map[pipeline.AssetType]executor.Config, error)
func SkipAllTasksIfSingleCheck ¶ added in v0.11.192
func UpdateEnvironment ¶ added in v0.11.254
func ValidateRunConfig ¶ added in v0.11.123
func VersionCmd ¶ added in v0.11.66
Types ¶
type CleanCommand ¶ added in v0.1.3
type CleanCommand struct {
// contains filtered or unexported fields
}
type ConnectionsCommand ¶ added in v0.11.22
type ConnectionsCommand struct{}
func (*ConnectionsCommand) ListConnections ¶ added in v0.11.22
func (r *ConnectionsCommand) ListConnections(pathToProject, output, environment, configFilePath string) error
type EnvironmentCloneCommand ¶ added in v0.11.280
type EnvironmentCloneCommand struct{}
func (*EnvironmentCloneCommand) Run ¶ added in v0.11.280
func (r *EnvironmentCloneCommand) Run(sourceName, targetName, schemaPrefix, output, configFilePath string) error
type EnvironmentDeleteCommand ¶ added in v0.11.254
type EnvironmentDeleteCommand struct{}
type EnvironmentListCommand ¶ added in v0.11.4
type EnvironmentListCommand struct{}
func (*EnvironmentListCommand) Run ¶ added in v0.11.4
func (r *EnvironmentListCommand) Run(output, configFilePath string) error
type EnvironmentUpdateCommand ¶ added in v0.11.254
type EnvironmentUpdateCommand struct{}
func (*EnvironmentUpdateCommand) Run ¶ added in v0.11.254
func (r *EnvironmentUpdateCommand) Run(name, newName, schemaPrefix, output, configFilePath string) error
type ErrorResponse ¶ added in v0.11.47
type ErrorResponse struct {
Error string `json:"error"`
}
type ErrorResponses ¶ added in v0.11.47
type ErrorResponses struct {
Error []string `json:"error"`
}
type ExecutionSummary ¶ added in v0.11.260
type ExecutionSummary struct {
TotalTasks int
SuccessfulTasks int
FailedTasks int
SkippedTasks int
Assets TaskTypeStats
ColumnChecks TaskTypeStats
CustomChecks TaskTypeStats
MetadataPush TaskTypeStats
Duration time.Duration
}
type Filter ¶ added in v0.11.113
type Filter struct {
IncludeTag string // Tag to include assets (from `--tag`)
OnlyTaskTypes []string // Task types to include (from `--only`)
IncludeDownstream bool // Whether to include downstream tasks (from `--downstream`)
PushMetaData bool
SingleTask *pipeline.Asset
ExcludeTag string
// contains filtered or unexported fields
}
type FilterMutator ¶ added in v0.11.169
type LineageCommand ¶
type LineageCommand struct {
// contains filtered or unexported fields
}
type ModifierInfo ¶ added in v0.11.197
type ParseCommand ¶ added in v0.10.1
type ParseCommand struct {
// contains filtered or unexported fields
}
func (*ParseCommand) ParsePipeline ¶ added in v0.11.16
type PipelineInfo ¶ added in v0.11.123
type PipelineInfo struct {
Pipeline *pipeline.Pipeline
RunningForAnAsset bool
RunDownstreamTasks bool
}
func GetPipeline ¶ added in v0.11.123
type RenderCommand ¶
type RenderCommand struct {
// contains filtered or unexported fields
}
func (*RenderCommand) Run ¶
func (r *RenderCommand) Run(pl *pipeline.Pipeline, task *pipeline.Asset, modifierInfo ModifierInfo) error
type ScheduledQuery ¶ added in v0.11.280
type ScheduledQuery struct {
Name string
DisplayName string
Query string
Schedule string
Dataset string
Config *datatransferpb.TransferConfig
}
Scheduled query data structures.
type SuccessResponse ¶ added in v0.11.237
type SummaryStats ¶ added in v0.11.242
type TableComparer ¶ added in v0.11.224
type TableComparer interface {
CompareTables(ctx context.Context, table1, table2 string) (*diff.SchemaComparisonResult, error)
}
TableComparer defines an interface for connections that can compare tables.
type TableauDashboard ¶ added in v0.11.304
type TableauDashboard struct {
ViewID string
ViewName string
WorkbookID string
WorkbookName string
WorkbookURL string // Added for workbook URL in meta
ProjectID string // Added for project hierarchy
ProjectName string
ProjectPath []string // Added for full project hierarchy path
OwnerName string
ContentURL string
ViewURL string
UpdatedAt string
Tags []string
DataSources []tableau.DataSourceInfo // Added for data source dependencies
Connections []tableau.WorkbookConnection // Added for connection tracking
}
TableauDashboard represents a dashboard/view with its workbook information.
type TaskTypeStats ¶ added in v0.11.260
type TaskTypeStats struct {
Total int
Succeeded int
Failed int // Failed in main execution
FailedDueToChecks int // Failed only due to checks (main execution succeeded)
Skipped int
}
func (TaskTypeStats) HasAny ¶ added in v0.11.260
func (s TaskTypeStats) HasAny() bool
func (TaskTypeStats) SuccessRate ¶ added in v0.11.260
func (s TaskTypeStats) SuccessRate() float64
type VersionInfo ¶ added in v0.11.112
type WarningResponse ¶ added in v0.11.237
Source Files
¶
Click to show internal directories.
Click to hide internal directories.