... | ... | @@ -132,14 +132,23 @@ func newKeaModule(manager Manager) *KeaModule |
|
|
Creates new instance of the Kea configuration module.
|
|
|
|
|
|
func (kea *KeaModule) ApplyEdit(ctx context.Context, daemonID int64, cfg keaconfig.Map) error
|
|
|
Applies configuration changes after editing daemon's configuration file.
|
|
|
Applies configuration changes after editing daemon's configuration file. The
|
|
|
changes are queued must be confirmed by calling the Commit() or Schedule().
|
|
|
|
|
|
func (kea *KeaModule) BeginEdit(ctx context.Context, daemonID int64) (cfg keaconfig.Map, err error)
|
|
|
Begins editing specified daemon's configuration file.
|
|
|
|
|
|
func (kea *KeaModule) Commit(ctx context) error
|
|
|
Sends the changes queued in the context to one or multiple daemons right
|
|
|
away.
|
|
|
|
|
|
func (kea *KeaModule) SaveConfig(c dbmodel.KeaConfig) error
|
|
|
Saves the specified configuration as a current revision.
|
|
|
|
|
|
func (kea *KeaModule) Schedule(ctx context, deadline time) error
|
|
|
Schedules sending the changes queued in the context to one or multiple
|
|
|
daemons.
|
|
|
|
|
|
type LockKey int64
|
|
|
Represents a configuration lock key.
|
|
|
|
... | ... | |