NodeAgentConfig constructor
NodeAgentConfig({
- required Uri hubUri,
- required String nodeId,
- required CredentialProvider credentials,
- String nodeMount = '/node',
- String displayName = '',
- Map<
String, String> labels = const {}, - SecurityContext? securityContext,
- bool onBadCertificate(
- X509Certificate cert,
- String host,
- int port
- Duration heartbeatInterval = const Duration(seconds: 15),
- ReconnectPolicy reconnect = const ReconnectPolicy(),
- Clock clock = const SystemClock(),
- String agentVersion = omnyServerVersion,
- StatusProvider? statusProvider,
- CapabilityProvider? capabilityProvider,
- FormulaHandler? formulaHandler,
- PresetHandler? presetHandler,
- ServiceHandler? serviceHandler,
- NodeControlHandler? nodeControlHandler,
- void logger(
- String message
- 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,
});