data_source

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package data_source contains the API for the data source syncer.

Index

Constants

View Source
const DataSourceSyncerName = "dataSourceSyncer"

DataSourceSyncerName constant should not be used directly when implementing plugins. It's the registration name for the data source syncer plugin, used by the CLI and the cli-plugin-base library (RegisterPlugins function) to register the plugins.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSourceSyncConfig

type DataSourceSyncConfig struct {
	base.BaseTargetConfig
	TargetFile      string
	DeleteUntouched bool
	ReplaceTags     bool
	DeleteTempFiles bool
}

DataSourceSyncConfig represents the configuration that is passed from the CLI to the DataAccessSyncer plugin interface. It contains all the necessary configuration parameters for the plugin to function.

type DataSourceSyncer

type DataSourceSyncer interface {
	SyncDataSource(config *DataSourceSyncConfig) (string, error)
}

DataSourceSyncer interface needs to be implemented by any plugin that wants to import data objects into a Raito data source.

type DataSourceSyncerPlugin

type DataSourceSyncerPlugin struct {
	Impl DataSourceSyncer
}

func (DataSourceSyncerPlugin) Client

func (DataSourceSyncerPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*DataSourceSyncerPlugin) Server

func (p *DataSourceSyncerPlugin) Server(*plugin.MuxBroker) (interface{}, error)

type DataSourceSyncerRPC

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

func (*DataSourceSyncerRPC) SyncDataSource

func (g *DataSourceSyncerRPC) SyncDataSource(config *DataSourceSyncConfig) (string, error)

type DataSourceSyncerRPCServer

type DataSourceSyncerRPCServer struct {
	Impl DataSourceSyncer
}

func (*DataSourceSyncerRPCServer) SyncDataSource

func (s *DataSourceSyncerRPCServer) SyncDataSource(config *DataSourceSyncConfig, resp *string) error

Jump to

Keyboard shortcuts

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