mirror of https://github.com/pulumi/pulumi.git
aa6cf90228
This abstracts the code from `currentBackend` and `nonInteractiveCurrentBackend` into a new interface `LoginManager`. This happens to very closely match the `LoginManger` interface defined in the httpstate backend, but this is intended to be used for diy state as well. There were a few places using `loginToCloud` to specifically login to the cloud backend. I've replaced these with just `DefaultLoginManager.Login` because either they are specifically passing in a cloud URL, or possibly an empty URL which will in Login select the cloud backend. This lays the path to getting rid of backendInstance, which should allow more tests to run with `t.Parallel()`, and be a more obvious mock point (plus its just nice to have less global variables). --------- Co-authored-by: Will Jones <will@sacharissa.co.uk> |
||
---|---|---|
.. | ||
display | ||
diy | ||
filestate | ||
httpstate | ||
state | ||
apply.go | ||
apply_test.go | ||
backend.go | ||
backend_test.go | ||
cancellation_scope.go | ||
doc.go | ||
errors.go | ||
inmemoryPersister.go | ||
login_manager.go | ||
mock.go | ||
policypack.go | ||
query.go | ||
snapshot.go | ||
snapshot_test.go | ||
stack.go | ||
updates.go | ||
watch.go |