access_provider

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const AccessSyncerName = "accessSyncer"

AccessSyncerName constant should not be used directly when implementing plugins. It's the registration name for the data access 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 AccessSyncFromTarget added in v0.20.0

type AccessSyncFromTarget struct {
	config.ConfigMap
	// TargetFile points to the file where the plugin needs to export the access control naming.
	TargetFile string
	Prefix     string
}

AccessSyncFromTarget contains all necessary configuration parameters to import Data from Raito into DS

type AccessSyncResult added in v0.15.0

type AccessSyncResult struct {
	Error *error2.ErrorResult
}

AccessSyncResult represents the result from the data access sync process. A potential error is also modeled in here so specific errors remain intact when passed over RPC.

type AccessSyncToTarget added in v0.20.0

type AccessSyncToTarget struct {
	config.ConfigMap
	// SourceFile points to the file containing the access controls that need to be pushed to the data source.
	SourceFile string
	// FeedbackTargetFile points to the file where the plugin needs to export the access controls feedback to.
	FeedbackTargetFile string
	Prefix             string
}

AccessSyncToTarget contains all necessary configuration parameters to export Data from Raito into DS

type AccessSyncer added in v0.15.0

type AccessSyncer interface {
	SyncFromTarget(config *AccessSyncFromTarget) AccessSyncResult
	SyncToTarget(config *AccessSyncToTarget) AccessSyncResult
}

AccessSyncer interface needs to be implemented by any plugin that wants to sync access controls between Raito and the data source. This sync can be in the 2 directions or in just 1 depending on the parameters set in AccessSyncConfig.

type AccessSyncerPlugin added in v0.15.0

type AccessSyncerPlugin struct {
	Impl AccessSyncer
}

AccessSyncerPlugin is used on the server (CLI) and client (plugin) side to integrate with the plugin system. A plugin should not be using this directly, but instead depend on the cli-plugin-base library to register the plugins.

func (AccessSyncerPlugin) Client added in v0.15.0

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

func (AccessSyncerPlugin) Server added in v0.15.0

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

Directories

Path Synopsis
Package sync_from_target provides the tooling to build the file to export access providers from the data source to be imported into Raito.
Package sync_from_target provides the tooling to build the file to export access providers from the data source to be imported into Raito.

Jump to

Keyboard shortcuts

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