... | ... | @@ -131,21 +131,27 @@ type KeaModule struct { |
|
|
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
|
|
|
func (kea *KeaModule) ApplyEdit(ctx context.Context, cfg keaconfig.Map) error
|
|
|
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) ApplySubnetUpdate(ctx context.Context, subnet *dbmodel.Subnet) error
|
|
|
Applies modified subnet to multiple Kea servers.
|
|
|
|
|
|
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
|
|
|
func (kea *KeaModule) BeginSubnetUpdate(ctx context.Context, subnet *dbmodel.Subnet) (*dbmodel.Subnet, error)
|
|
|
Begins an update of the existing subnet on multiple Kea servers.
|
|
|
|
|
|
func (kea *KeaModule) Commit(ctx context.Context) error
|
|
|
Sends the changes queued in the context to one or multiple daemons right
|
|
|
away.
|
|
|
|
|
|
func (kea *KeaModule) SaveConfig(c dbmodel.KeaConfig) error
|
|
|
func (kea *KeaModule) SaveConfig(c dbmodel.KeaConfig, daemonID int64) error
|
|
|
Saves the specified configuration as a current revision.
|
|
|
|
|
|
func (kea *KeaModule) Schedule(ctx context, deadline time) error
|
|
|
func (kea *KeaModule) Schedule(ctx context.Context, deadline time.Time) error
|
|
|
Schedules sending the changes queued in the context to one or multiple
|
|
|
daemons.
|
|
|
|
... | ... | |