Add Pending Config Apply and Discard API Methods

This commit is contained in:
Samuel Lorch 2023-04-02 02:00:34 +02:00
parent 57fc5c0987
commit 48fa7349da

View file

@ -30,3 +30,11 @@ func (c *Config) GetPendingChangelog(ctx context.Context, params struct{}) (GetP
Changelog: log, Changelog: log,
}, nil }, nil
} }
func (c *Config) ApplyPendingChanges(ctx context.Context, params struct{}) (struct{}, error) {
return struct{}{}, c.ConfigManager.ApplyPendingChanges()
}
func (c *Config) DiscardPendingChanges(ctx context.Context, params struct{}) (struct{}, error) {
return struct{}{}, c.ConfigManager.DiscardPendingConfig()
}