access_provider

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 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 AccessSyncConfig added in v0.15.0

type AccessSyncConfig struct {
	config.ConfigMap
	// SourceFile points to the file containing the access controls that need to be pushed to the data source.
	SourceFile string
	// TargetFile points to the file where the plugin needs to export the access controls to that are read from the data source.
	TargetFile string
	Prefix     string
}

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

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 AccessSyncer added in v0.15.0

type AccessSyncer interface {
	SyncAccess(config *AccessSyncConfig) 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 exporter provides the tooling to build the file to export access providers from the data source to be imported into Raito.
Package exporter 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