srv

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyPlugin

type DummyPlugin struct {
	Config    DummyPluginConfig
	Operation plugin.OperationType
}

func NewDummyPlugin

func NewDummyPlugin() *DummyPlugin

func (DummyPlugin) Close

func (s DummyPlugin) Close() (*plugin.Stats, error)

func (DummyPlugin) Delete

func (s DummyPlugin) Delete(userId string) error

func (DummyPlugin) GetConfig

func (s DummyPlugin) GetConfig() plugin.PluginConfig

func (DummyPlugin) GetVersion added in v0.0.5

func (s DummyPlugin) GetVersion() (string, string, string)

func (DummyPlugin) Open

func (s DummyPlugin) Open(config plugin.PluginConfig, operation plugin.OperationType) error

func (DummyPlugin) Read

func (s DummyPlugin) Read() ([]*api.User, error)

func (DummyPlugin) Write

func (s DummyPlugin) Write(user *api.User) error

type DummyPluginConfig

type DummyPluginConfig struct {
	IntValue    int    `description:"int value" kind:"attribute" mode:"normal" readonly:"false" name:"int_value"`
	StringValue string `description:"string value" kind:"secret" mode:"masked" readonly:"false" name:"string_value"`
}

func (*DummyPluginConfig) Description

func (c *DummyPluginConfig) Description() string

func (*DummyPluginConfig) Validate

func (c *DummyPluginConfig) Validate() error

Jump to

Keyboard shortcuts

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