dconf

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeConfig added in v0.3.0

func MergeConfig(existing, newTarget *Config) error

MergeConfig merges dconf target configs using deep map merging

func New

func New() features.Feature

New creates a new dconf feature

func NewExecutor

func NewExecutor() engine.Executor

NewExecutor creates a new dconf executor

Types

type Config

type Config struct {
	User     string                 `json:"user,omitempty"`
	Schema   string                 `json:"schema"`
	Settings map[string]interface{} `json:"settings"`
}

Config represents the configuration for a dconf target

func (*Config) Type

func (c *Config) Type() string

Type implements TargetConfig interface

func (*Config) Validate

func (c *Config) Validate() error

Validate checks if the dconf configuration is valid

type Executor

type Executor struct{}

Executor implements the engine.Executor interface for dconf targets

func (*Executor) Apply

func (e *Executor) Apply(target types.AnyTarget, diff *state.ConfigDiff) error

Apply applies the changes to dconf

func (*Executor) CurrentState added in v0.3.0

func (e *Executor) CurrentState(target types.AnyTarget) (map[string]interface{}, error)

CurrentState retrieves the current state from dconf

func (*Executor) Validate

func (e *Executor) Validate(target types.AnyTarget) error

Validate checks if the target is valid

type Feature

type Feature struct {
	// contains filtered or unexported fields
}

Feature implements the features.Feature interface for dconf targets

func (*Feature) Executor

func (f *Feature) Executor() engine.Executor

Executor returns the executor implementation for this feature

func (*Feature) NewTarget

func (f *Feature) NewTarget(name string, config interface{}) (types.AnyTarget, error)

NewTarget creates a new dconf target instance

func (*Feature) Type

func (f *Feature) Type() string

Type returns the feature type identifier

func (*Feature) Validate added in v0.3.0

func (f *Feature) Validate(config interface{}) error

Validate validates the dconf-specific configuration

type Target

type Target = types.BaseTarget[*Config]

Target is a type alias for dconf-based configuration targets

func NewTarget

func NewTarget(name, schema string) *Target

NewTarget creates a new dconf configuration target

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL