Commit 58f7f0b
committed
refactor: replace SSH fields in Environment with SshCredentials type
- Replace individual SSH fields (ssh_username, ssh_private_key_path, ssh_public_key_path) with single ssh_credentials field
- Update Environment constructor to accept SshCredentials instead of individual parameters
- Add ssh_credentials() accessor method for direct access to SSH credentials
- Update all SSH-related accessor methods to delegate to ssh_credentials fields
- Add required traits (Debug, Serialize, Deserialize) to SshCredentials struct
- Update all tests and documentation examples to use new constructor pattern
- Update E2E test binaries to use new SshCredentials pattern
This refactoring improves encapsulation by grouping SSH-related configuration
into a cohesive type that can be reused across the codebase.1 parent edf82f3 commit 58f7f0b
File tree
7 files changed
+90
-97
lines changed- src
- bin
- domain
- e2e
- tasks/container
7 files changed
+90
-97
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 117 | + | |
121 | 118 | | |
122 | 119 | | |
| 120 | + | |
123 | 121 | | |
124 | 122 | | |
| 123 | + | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 118 | + | |
122 | 119 | | |
123 | 120 | | |
| 121 | + | |
124 | 122 | | |
125 | 123 | | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 126 | + | |
130 | 127 | | |
131 | 128 | | |
| 129 | + | |
132 | 130 | | |
133 | 131 | | |
| 132 | + | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments