2022-03-03 04:39:15 -06:00
|
|
|
package pluginsettings
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Service interface {
|
2022-03-04 10:09:50 -06:00
|
|
|
// GetPluginSettings returns all Plugin Settings for the provided Org
|
2022-09-21 05:20:11 -05:00
|
|
|
GetPluginSettings(ctx context.Context, args *GetArgs) ([]*InfoDTO, error)
|
2022-03-18 14:49:13 -05:00
|
|
|
// GetPluginSettingByPluginID returns a Plugin Settings by Plugin ID
|
|
|
|
GetPluginSettingByPluginID(ctx context.Context, args *GetByPluginIDArgs) (*DTO, error)
|
2022-03-04 10:09:50 -06:00
|
|
|
// UpdatePluginSetting updates a Plugin Setting
|
2022-03-18 14:49:13 -05:00
|
|
|
UpdatePluginSetting(ctx context.Context, args *UpdateArgs) error
|
|
|
|
// UpdatePluginSettingPluginVersion updates a Plugin Setting's plugin version
|
|
|
|
UpdatePluginSettingPluginVersion(ctx context.Context, args *UpdatePluginVersionArgs) error
|
2022-03-04 10:09:50 -06:00
|
|
|
// DecryptedValues decrypts the encrypted secureJSONData of the provided plugin setting and
|
|
|
|
// returns the decrypted values.
|
2022-03-18 14:49:13 -05:00
|
|
|
DecryptedValues(ps *DTO) map[string]string
|
2022-03-03 04:39:15 -06:00
|
|
|
}
|