data_source

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const JSON_EXTENSION = ".json"

Variables

This section is empty.

Functions

func SetMetaData added in v0.10.0

func SetMetaData(ctx context.Context, config *types.BaseTargetConfig, metadata *data_source.MetaData) error

Types

type DataSourceImportConfig

type DataSourceImportConfig struct {
	types.BaseTargetConfig
	TargetFile      string
	DeleteUntouched bool

	// TagSourcesScope is the set of sources that will be looked at when merging the tags. Tags with other sources will remain untouched.
	// If not specified, the default is to take all sources for which tags are defined in the import file.
	TagSourcesScope []string `json:"tagSourcesScope"`
}

type DataSourceImportResult

type DataSourceImportResult struct {
	DataObjectsAdded   int `json:"dataObjectsAdded"`
	DataObjectsUpdated int `json:"dataObjectsUpdated"`
	DataObjectsRemoved int `json:"dataObjectsRemoved"`

	Warnings []string `json:"warnings"`
}

type DataSourceImporter

type DataSourceImporter interface {
	TriggerImport(ctx context.Context, jobId string) (job.JobStatus, string, error)
}

func NewDataSourceImporter

func NewDataSourceImporter(config *DataSourceImportConfig, statusUpdater job.TaskEventUpdater) DataSourceImporter

type DataSourceSync added in v0.16.0

type DataSourceSync struct {
	TargetConfig *types.BaseTargetConfig
	JobId        string
	// contains filtered or unexported fields
}

func (*DataSourceSync) GetParts added in v0.20.0

func (s *DataSourceSync) GetParts() []job.TaskPart

func (*DataSourceSync) GetResultObject added in v0.16.0

func (s *DataSourceSync) GetResultObject() interface{}

func (*DataSourceSync) GetTaskResults added in v0.38.0

func (s *DataSourceSync) GetTaskResults() []job.TaskResult

func (*DataSourceSync) IsClientValid added in v0.33.0

func (s *DataSourceSync) IsClientValid(ctx context.Context, c plugin.PluginClient) (bool, error)

func (*DataSourceSync) ProcessResults added in v0.16.0

func (s *DataSourceSync) ProcessResults(results interface{}) error

func (*DataSourceSync) StartSyncAndQueueTaskPart added in v0.20.0

func (s *DataSourceSync) StartSyncAndQueueTaskPart(ctx context.Context, client plugin.PluginClient, statusUpdater job.TaskEventUpdater) (job.JobStatus, string, error)

type PostProcessor added in v0.56.5

type PostProcessor struct {
	// contains filtered or unexported fields
}

func NewPostProcessor added in v0.56.5

func NewPostProcessor(config *PostProcessorConfig) PostProcessor

func (*PostProcessor) Close added in v0.56.5

func (p *PostProcessor) Close(ctx context.Context) error

func (*PostProcessor) NeedsPostProcessing added in v0.56.5

func (p *PostProcessor) NeedsPostProcessing() bool

func (*PostProcessor) PostProcess added in v0.56.5

func (p *PostProcessor) PostProcess(inputFilePath string, outputFile string) (*PostProcessorResult, error)

type PostProcessorConfig added in v0.56.5

type PostProcessorConfig struct {
	TagOverwriteKeyForOwners string
	DataSourceId             string
	DataObjectParent         string
	DataObjectExcludes       []string
	TargetLogger             hclog.Logger
}

type PostProcessorOutputFileWriter added in v0.56.5

type PostProcessorOutputFileWriter interface {
	AddDataObjects(dataObjects ...*data_source.DataObject) error
}

type PostProcessorResult added in v0.56.5

type PostProcessorResult struct {
	DataObjectsTouchedCount int
}

type QueryResponse added in v0.16.0

type QueryResponse struct {
	Subtask subtaskResponse `json:"subtask"`
}

type Response

type Response struct {
	Response QueryResponse `json:"importDataSourceRequest"`
}

Jump to

Keyboard shortcuts

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