chore(v1): deprecated
This commit is contained in:
@ -22,12 +22,14 @@ const (
|
||||
eventSettingsResetToDefault = "settings reset to default"
|
||||
)
|
||||
|
||||
// Deprecated : is no longer maintained for modules in V1
|
||||
type configurationApplied struct {
|
||||
Configuration *model.Configuration `mapstructure:"configuration,omitempty"`
|
||||
Result string `mapstructure:"result"`
|
||||
Constraints *model.Constraints `mapstructure:"constraints,omitempty"`
|
||||
}
|
||||
|
||||
// Deprecated : is no longer maintained for modules in V1
|
||||
func (o *Operations) ApplyConfiguration(ctx context.Context, config *model.Configuration) (string, *model.Configuration, error) {
|
||||
o.logger.Debug("applying configuration", logger.Attr("configuration", spew.Sdump(config)))
|
||||
|
||||
@ -41,6 +43,7 @@ func (o *Operations) ApplyConfiguration(ctx context.Context, config *model.Confi
|
||||
return res.Result, res.Configuration, nil
|
||||
}
|
||||
|
||||
// Deprecated : is no longer maintained for modules in V1
|
||||
func (o *Operations) RequestConfiguration(ctx context.Context) (*model.Configuration, error) {
|
||||
configuration := &model.Configuration{}
|
||||
if err := o.ReqResp(ctx, eventGetConfiguration, nil, eventCurrentConfiguration, configuration); err != nil {
|
||||
@ -49,6 +52,7 @@ func (o *Operations) RequestConfiguration(ctx context.Context) (*model.Configura
|
||||
return configuration, nil
|
||||
}
|
||||
|
||||
// Deprecated : is no longer maintained for modules in V1
|
||||
// ReqResp emits an event with the given data and waits for a response
|
||||
func (o *Operations) ReqResp(ctx context.Context,
|
||||
requestEvent string, requestData any,
|
||||
|
Reference in New Issue
Block a user