Documentation
¶
Index ¶
- Variables
- type DTO
- type FakePluginSettings
- func (ps *FakePluginSettings) DecryptedValues(dto *DTO) map[string]string
- func (ps *FakePluginSettings) GetPluginSettingByPluginID(ctx context.Context, args *GetByPluginIDArgs) (*DTO, error)
- func (ps *FakePluginSettings) GetPluginSettings(_ context.Context, _ *GetArgs) ([]*InfoDTO, error)
- func (ps *FakePluginSettings) UpdatePluginSetting(ctx context.Context, args *UpdateArgs) error
- func (ps *FakePluginSettings) UpdatePluginSettingPluginVersion(ctx context.Context, args *UpdatePluginVersionArgs) error
- type GetArgs
- type GetByPluginIDArgs
- type GetPluginSettingByIdQuery
- type InfoDTO
- type PluginSetting
- type PluginSettingInfo
- type PluginStateChangedEvent
- type Service
- type UpdateArgs
- type UpdatePluginSettingCmd
- type UpdatePluginSettingVersionCmd
- type UpdatePluginVersionArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPluginSettingNotFound = errors.New("plugin setting not found")
)
Functions ¶
This section is empty.
Types ¶
type FakePluginSettings ¶
func (*FakePluginSettings) DecryptedValues ¶
func (ps *FakePluginSettings) DecryptedValues(dto *DTO) map[string]string
DecryptedValues decrypts the encrypted secureJSONData of the provided plugin setting and returns the decrypted values.
func (*FakePluginSettings) GetPluginSettingByPluginID ¶
func (ps *FakePluginSettings) GetPluginSettingByPluginID(ctx context.Context, args *GetByPluginIDArgs) (*DTO, error)
GetPluginSettingByPluginID returns a Plugin Settings by Plugin ID
func (*FakePluginSettings) GetPluginSettings ¶
GetPluginSettings returns all Plugin Settings for the provided Org
func (*FakePluginSettings) UpdatePluginSetting ¶
func (ps *FakePluginSettings) UpdatePluginSetting(ctx context.Context, args *UpdateArgs) error
UpdatePluginSetting updates a Plugin Setting
func (*FakePluginSettings) UpdatePluginSettingPluginVersion ¶
func (ps *FakePluginSettings) UpdatePluginSettingPluginVersion(ctx context.Context, args *UpdatePluginVersionArgs) error
UpdatePluginSettingPluginVersion updates a Plugin Setting's plugin version
type GetByPluginIDArgs ¶
type GetPluginSettingByIdQuery ¶
type GetPluginSettingByIdQuery struct {
PluginId string
OrgId int64
Result *PluginSetting
}
type PluginSetting ¶
type PluginSettingInfo ¶
type PluginStateChangedEvent ¶
type Service ¶
type Service interface {
// GetPluginSettings returns all Plugin Settings for the provided Org
GetPluginSettings(ctx context.Context, args *GetArgs) ([]*InfoDTO, error)
// GetPluginSettingByPluginID returns a Plugin Settings by Plugin ID
GetPluginSettingByPluginID(ctx context.Context, args *GetByPluginIDArgs) (*DTO, error)
// UpdatePluginSetting updates a Plugin Setting
UpdatePluginSetting(ctx context.Context, args *UpdateArgs) error
// UpdatePluginSettingPluginVersion updates a Plugin Setting's plugin version
UpdatePluginSettingPluginVersion(ctx context.Context, args *UpdatePluginVersionArgs) error
// DecryptedValues decrypts the encrypted secureJSONData of the provided plugin setting and
// returns the decrypted values.
DecryptedValues(ps *DTO) map[string]string
}
type UpdateArgs ¶
type UpdatePluginSettingCmd ¶
type UpdatePluginSettingCmd struct {
Enabled bool `json:"enabled"`
Pinned bool `json:"pinned"`
JsonData map[string]interface{} `json:"jsonData"`
SecureJsonData map[string]string `json:"secureJsonData"`
PluginVersion string `json:"version"`
PluginId string `json:"-"`
OrgId int64 `json:"-"`
EncryptedSecureJsonData map[string][]byte `json:"-"`
}
Also acts as api DTO
type UpdatePluginSettingVersionCmd ¶
type UpdatePluginSettingVersionCmd struct {
PluginVersion string
PluginId string `json:"-"`
OrgId int64 `json:"-"`
}
specific command, will only update version
type UpdatePluginVersionArgs ¶
Click to show internal directories.
Click to hide internal directories.