...

Source file src/edge-infra.dev/pkg/sds/display/displaymanager/applier/applier.go

Documentation: edge-infra.dev/pkg/sds/display/displaymanager/applier

     1  package applier
     2  
     3  import (
     4  	"context"
     5  
     6  	v2 "edge-infra.dev/pkg/sds/display/k8s/apis/v2"
     7  )
     8  
     9  // A DisplayApplier is able to take a DisplayConfig and apply the display
    10  // configuration to the host node, e.g. by updating the xorg.conf file with
    11  // the configuration detailed by the DisplayConfig.
    12  //
    13  // The relevant display manager (e.g. Xorg) must be running to be able to apply
    14  // the display configuration to the node. See manager.DisplayManager.
    15  type DisplayApplier interface {
    16  	// Apply takes display configuration for the node represented as a
    17  	// DisplayConfig and applies it to the display manager.
    18  	//
    19  	// The applied DisplayConfig is returned, with any specified input or
    20  	// display devices which were not present removed.
    21  	Apply(context.Context, *v2.DisplayConfig) (*v2.DisplayConfig, error)
    22  }
    23  

View as plain text