LinuxEnvDataSource class

Linux environment file data source for reading environment variables

Constructors

LinuxEnvDataSource()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getApiUrl() Future<String?>
Gets the API URL from the environment file
getDeviceId() Future<String?>
Gets the device ID from the environment file
getDeviceInfoFromEnv() Future<Map<String, String?>>
Get device ID and base URL from Linux environment file
getEnvVar(String key) Future<String?>
Gets a specific environment variable from the file
getReportingUrl() Future<String?>
Gets the Reporting URL from the environment file
getWsUrl() Future<String?>
Gets the WebSocket URL from the environment file
readEnvFile() Future<Map<String, String>>
Reads the environment file and returns a map of key-value pairs
validateEnvFile() Future<bool>
Validates that all required environment variables are present