Chris Roberts
3f6aef88a2
Fix target loading from target index
2022-04-25 12:24:32 -05:00
Chris Roberts
8b8f5adf67
Defer the unlock when loading target
2022-04-25 12:24:31 -05:00
Chris Roberts
aaf0ae8504
Generated proto updates
2022-04-25 12:24:31 -05:00
Chris Roberts
097c4547db
Support target lookups via uuid
2022-04-25 12:24:31 -05:00
Chris Roberts
4dc26db12c
Update index to be free of scope and include factory
2022-04-25 12:24:31 -05:00
Chris Roberts
96ac78a9a4
Fix some panics
2022-04-25 12:24:31 -05:00
Chris Roberts
003b06502c
Set provider within target
2022-04-25 12:24:31 -05:00
Chris Roberts
c4011c7fde
Attach factory to basis. Let basis provide target index
2022-04-25 12:24:31 -05:00
Chris Roberts
c562132e11
Update save behavior of project and get target index from basis
2022-04-25 12:24:31 -05:00
Chris Roberts
87ecd2b017
Add destroy function for target, update save behavior
2022-04-25 12:24:31 -05:00
Chris Roberts
32710b5d79
Create basis from factory and update runner to use factory
2022-04-25 12:24:30 -05:00
Chris Roberts
276af825b5
Use Save() for storing target
2022-04-25 12:24:30 -05:00
Chris Roberts
4f698c9ab2
Set resource ID into target proto for search
2022-04-25 12:24:30 -05:00
Chris Roberts
99e01aa9f9
Set target data after save
2022-04-25 12:24:29 -05:00
Chris Roberts
9319409d45
Load all targets defined within project
2022-04-25 12:24:29 -05:00
Chris Roberts
b9478e7eee
Load target when not already loaded
2022-04-25 12:24:29 -05:00
sophia
f261b9a158
Fix errorf formatting
2022-04-25 12:24:29 -05:00
sophia
277972f38f
Disable tests that use plugin manager to load builtin plugins
...
Loading builtin plugins is being changed. Once it has been fixed,
these tests should be re-enabled
2022-04-25 12:24:29 -05:00
sophia
83111d62ae
Add git tag to git tag test repo
2022-04-25 12:24:29 -05:00
sophia
12cb7b9fca
Include a plugin manager for basis creation in runner tests
2022-04-25 12:24:29 -05:00
sophia
eb90501fd1
Make test for project more basic
2022-04-25 12:24:29 -05:00
sophia
806f6e7399
Set a target dir when loading from a project
2022-04-25 12:24:29 -05:00
sophia
10a1f1011b
Get datadir for machine and project
2022-04-25 12:24:29 -05:00
sophia
bc365ab796
Remote discover tests
2022-04-25 12:24:28 -05:00
sophia
32df0557e0
Fix core tests
2022-04-25 12:24:28 -05:00
sophia
3e74501d26
Get full path to Vagrantfile without Vagrantfile name
2022-04-25 12:24:28 -05:00
sophia
6cde007530
Get Vagrantfile path from project
2022-04-25 12:24:28 -05:00
sophia
0778e615e9
Remote NewTarget method
2022-04-25 12:24:28 -05:00
sophia
154a4e56f0
Use uuid as Target Index identifier
2022-04-25 12:24:28 -05:00
sophia
466c692d1c
Update target index interface to use core.TargetRef instead of protos
2022-04-25 12:24:28 -05:00
sophia
83495a4f8b
Fix each machine index machine yielder
2022-04-25 12:24:27 -05:00
sophia
47a0a2d7d2
Record machine client in machine index entry
2022-04-25 12:24:27 -05:00
sophia
6eea1b0afd
Add endpoint for getting all machines from the index
2022-04-25 12:24:27 -05:00
sophia
f103797592
go generate .
2022-04-25 12:24:27 -05:00
sophia
6f54cf51a2
Allow Machine Index entries to have a remote machine reference
2022-04-25 12:24:27 -05:00
sophia
991f7db5c5
Find target in index
2022-04-25 12:24:27 -05:00
sophia
3bda8b24ef
Save point: Get a target successfully from target index
2022-04-25 12:24:26 -05:00
sophia
b22c128671
Get a target from target index
2022-04-25 12:24:26 -05:00
sophia
1ea5b2ba91
Save point: use target ref to retrieve info from target index
2022-04-25 12:24:26 -05:00
sophia
293af5de29
Fill in target index implementation
2022-04-25 12:24:26 -05:00
sophia
a5445b708e
go generate
2022-04-25 12:24:26 -05:00
sophia
be074047eb
wip
2022-04-25 12:24:25 -05:00
sophia
ea313d1291
Implement service endpoint to delete target
2022-04-25 12:24:25 -05:00
sophia
040f02e60d
Add proto to delete target
2022-04-25 12:24:25 -05:00
sophia
551aa2970f
Rename machine index to target index
2022-04-25 12:24:25 -05:00
sophia
16f3ba3574
Setup machine index class
2022-04-25 12:24:25 -05:00
Chris Roberts
378019f014
Generated proto updates
2022-04-25 12:24:25 -05:00
Chris Roberts
6bc65c10c8
Update dynamic to use client directly and automatically set scope
2022-04-25 12:24:25 -05:00
Chris Roberts
9caa92a20a
Update command setup to use base client and then load scope
...
There are still some things left to address like how to handle
a target (or targets) and if that is something we should even
be doing. It may be best to just let the command deal with
target loading. There are also some considerations to make
around remote source.
2022-04-25 12:24:25 -05:00
Chris Roberts
dd9f7f19b4
Update types used
2022-04-25 12:24:24 -05:00