TomSecretsIntegrations class final

The integrations of one user on this machine.

Constructors

TomSecretsIntegrations({required String home, String? agentEndpoint, String? tsmExecutable, String? operatingSystem, String? path})
The integrations under home: the ssh-agent at agentEndpoint (the service's statusReport.agent), the helper beside tsmExecutable; operatingSystem and path (PATH) default to this process's.

Properties

agentEndpoint → String?
Where the service's agent listens, or null when it is not known.
final
gitConfig → String
~/.gitconfig.
no setter
hashCode → int
The hash code for this object.
no setterinherited
git-credential-tsm beside tsm, or null when tsm is not known.
no setter
home → String
The user's home folder.
final
operatingSystem → String
The OS the files are for.
final
path → String
The PATH git looks for the helper on.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sshConfig → String
~/.ssh/config.
no setter
tsmExecutable → String?
tsm's executable, or null when it is not known.
final

Methods

fileOf(TomSecretsIntegration integration) → String
The file of integration.
install(TomSecretsIntegration integration, {String? hosts}) → Future<TomSecretsIntegrationState>
Writes integration's block (an ssh block for hosts: the block's own patterns when it has some, else *), and for git the helper link. Throws StateError when the endpoint or tsm is not known.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
repair() → Future<List<TomSecretsIntegration>>
Installs again every installed integration that no longer names this machine's agent or helper (the app's check at every start); answers those it repaired.
sshBlock({String hosts = '*'}) → List<String>
The ssh block for hosts (Host * by default).
status(TomSecretsIntegration integration) → Future<TomSecretsIntegrationState>
The state of integration.
toString() → String
A string representation of this object.
inherited
uninstall(TomSecretsIntegration integration) → Future<TomSecretsIntegrationState>
Removes integration's block (and for git the helper link).

Operators

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

Constants

gitBlock → const List<String>
The git block.