NodeAgentConfig constructor

NodeAgentConfig({
  1. required Uri hubUri,
  2. required String nodeId,
  3. required CredentialProvider credentials,
  4. String nodeMount = '/node',
  5. String displayName = '',
  6. Map<String, String> labels = const {},
  7. SecurityContext? securityContext,
  8. bool onBadCertificate(
    1. X509Certificate cert,
    2. String host,
    3. int port
    )?,
  9. Duration heartbeatInterval = const Duration(seconds: 15),
  10. ReconnectPolicy reconnect = const ReconnectPolicy(),
  11. Clock clock = const SystemClock(),
  12. String agentVersion = omnyServerVersion,
  13. StatusProvider? statusProvider,
  14. CapabilityProvider? capabilityProvider,
  15. FormulaHandler? formulaHandler,
  16. PresetHandler? presetHandler,
  17. ServiceHandler? serviceHandler,
  18. NodeControlHandler? nodeControlHandler,
  19. void logger(
    1. String message
    )?,
  20. bool verbose = false,
})

Creates a node-agent configuration.

Implementation

NodeAgentConfig({
  required this.hubUri,
  required this.nodeId,
  required this.credentials,
  this.nodeMount = '/node',
  this.displayName = '',
  this.labels = const {},
  this.securityContext,
  this.onBadCertificate,
  this.heartbeatInterval = const Duration(seconds: 15),
  this.reconnect = const ReconnectPolicy(),
  this.clock = const SystemClock(),
  this.agentVersion = omnyServerVersion,
  this.statusProvider,
  this.capabilityProvider,
  this.formulaHandler,
  this.presetHandler,
  this.serviceHandler,
  this.nodeControlHandler,
  this.logger,
  this.verbose = false,
});