Documentation
¶
Index ¶
- func GetVersion() (string, string, string)
- type JsonPlugin
- func (s *JsonPlugin) Close() error
- func (s *JsonPlugin) Delete(userId string) error
- func (s *JsonPlugin) GetConfig() plugin.PluginConfig
- func (s *JsonPlugin) Open(cfg plugin.PluginConfig, operation plugin.OperationType) error
- func (s *JsonPlugin) Read() ([]*api.User, error)
- func (s *JsonPlugin) Write(user *api.User) error
- type JsonPluginConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersion ¶
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() error
func (*JsonPlugin) Delete ¶
func (s *JsonPlugin) Delete(userId string) error
func (*JsonPlugin) GetConfig ¶
func (s *JsonPlugin) GetConfig() plugin.PluginConfig
func (*JsonPlugin) Open ¶
func (s *JsonPlugin) Open(cfg plugin.PluginConfig, operation plugin.OperationType) error
type JsonPluginConfig ¶
type JsonPluginConfig struct {
File string `description:"Json file path" kind:"attribute" mode:"normal" readonly:"false"`
}
func (*JsonPluginConfig) Description ¶
func (c *JsonPluginConfig) Description() string
func (*JsonPluginConfig) Validate ¶
func (c *JsonPluginConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.