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 atagentEndpoint(the service'sstatusReport.agent), the helper besidetsmExecutable;operatingSystemandpath(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
- helperLink → String?
-
git-credential-tsmbesidetsm, or null whentsmis not known.no setter - home → String
-
The user's home folder.
final
- operatingSystem → String
-
The OS the files are for.
final
- path → String
-
The
PATHgit 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 forhosts: the block's own patterns when it has some, else*), and for git the helper link. Throws StateError when the endpoint ortsmis 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