mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
Add Pending Config Apply and Discard API Methods
This commit is contained in:
parent
57fc5c0987
commit
48fa7349da
1 changed files with 8 additions and 0 deletions
|
@ -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()
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue