Documentation
¶
Index ¶
Constants ¶
const IdentityStoreSyncerName = "identityStoreSyncer"
IdentityStoreSyncerName constant should not be used directly when implementing plugins. It's the registration name for the identity store 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 IdentityStoreSyncConfig ¶
IdentityStoreSyncConfig represents the configuration that is passed from the CLI to the IdentityStoreSyncer plugin interface. It contains all the necessary configuration parameters for the plugin to function.
type IdentityStoreSyncResult ¶
type IdentityStoreSyncResult struct {
Error *api.ErrorResult
}
IdentityStoreSyncResult represents the result from the identity store sync process. A potential error is also modeled in here so specific errors remain intact when passed over RPC.
type IdentityStoreSyncer ¶
type IdentityStoreSyncer interface {
SyncIdentityStore(config *IdentityStoreSyncConfig) IdentityStoreSyncResult
}
IdentityStoreSyncer interface needs to be implemented by any plugin that wants to import users and groups into a Raito identity store.
type IdentityStoreSyncerPlugin ¶
type IdentityStoreSyncerPlugin struct {
Impl IdentityStoreSyncer
}
IdentityStoreSyncerPlugin 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 (IdentityStoreSyncerPlugin) Client ¶
func (IdentityStoreSyncerPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)
func (*IdentityStoreSyncerPlugin) Server ¶
func (p *IdentityStoreSyncerPlugin) Server(*plugin.MuxBroker) (interface{}, error)