GatekeeperClientConfig class

Optional configuration loaded from the .gatekeeper directory at the current user's home (resolved on all OSes supported by Dart).

The directory may contain:

  • config.json: a JSON object with optional host, port, access-key and verbose entries, used as defaults for the client.
  • access-key: a plain text file with the access key, used when neither the --access-key option nor config.json provides one.

Constructors

GatekeeperClientConfig({String? host, int? port, String? accessKey, bool verbose = false})
const

Properties

accessKey String?
final
hashCode int
The hash code for this object.
no setterinherited
host String?
final
port int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verbose bool
final

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

load() GatekeeperClientConfig
Loads the configuration from the .gatekeeper directory.
resolveDirectory() Directory?
The .gatekeeper directory at the user's home, or null if the home directory can't be resolved.
resolveUserHome() String?
Resolves the current user's home directory on all OSes supported by Dart.