srv

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() (string, string, string)

Types

type JsonPlugin

type JsonPlugin struct {
	Config *JsonPluginConfig
	// contains filtered or unexported fields
}

func NewJsonPlugin

func NewJsonPlugin() *JsonPlugin

func (*JsonPlugin) Close

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

func (*JsonPlugin) Delete

func (s *JsonPlugin) Delete(userId string) error

func (*JsonPlugin) GetConfig

func (s *JsonPlugin) GetConfig() plugin.PluginConfig

func (*JsonPlugin) GetVersion added in v0.0.10

func (s *JsonPlugin) GetVersion() (string, string, string)

func (*JsonPlugin) Open

func (s *JsonPlugin) Open(cfg plugin.PluginConfig, operation plugin.OperationType) error

func (*JsonPlugin) Read

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

func (*JsonPlugin) Write

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

type JsonPluginConfig

type JsonPluginConfig struct {
	FromFile string `description:"Json file path to read or delete from" kind:"attribute" mode:"normal" readonly:"false" name:"from_file"`
	ToFile   string `description:"Json file path to write to" kind:"attribute" mode:"normal" readonly:"false" name:"to_file"`
}

func (*JsonPluginConfig) Description

func (c *JsonPluginConfig) Description() string

func (*JsonPluginConfig) Validate

func (c *JsonPluginConfig) Validate(operation plugin.OperationType) error

Jump to

Keyboard shortcuts

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