access_provider

package
v0.31.2-dev0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 6 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

func WithImplicitDeleteInAccessProviderUpdate added in v0.30.0

func WithImplicitDeleteInAccessProviderUpdate() func(config *AccessSyncConfig)

func WithSupportPartialSync added in v0.30.0

func WithSupportPartialSync() func(config *AccessSyncConfig)

Types

type AccessSyncConfig added in v0.15.0

type AccessSyncConfig struct {
	// SupportPartialSync if true, syncing only out of sync access providers is allowed
	SupportPartialSync bool

	// ImplicitDeleteInAccessProviderUpdate if true, access providers can be deleted by name only
	ImplicitDeleteInAccessProviderUpdate bool
}

AccessSyncConfig gives us information on how the CLI can sync access providers

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

	SyncConfig() AccessSyncConfig
}

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