pulumi/pkg/backend
Fraser Waters aa6cf90228
Add LoginManager to backend package (#17199)
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>
2024-09-10 09:04:49 +00:00
..
display Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
diy state move: show full set of delete commands when writing source stack fails (#17205) 2024-09-09 16:33:07 +00:00
filestate Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
httpstate Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
state [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
apply.go Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
apply_test.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
backend.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
backend_test.go Allow anything in resource names (#14107) 2023-11-20 08:59:00 +00:00
cancellation_scope.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
inmemoryPersister.go Revert "Revert "Run integration tests and dev builds with race detection" (#15998)" (#16148) 2024-05-09 16:15:41 +00:00
login_manager.go Add LoginManager to backend package (#17199) 2024-09-10 09:04:49 +00:00
mock.go Add LoginManager to backend package (#17199) 2024-09-10 09:04:49 +00:00
policypack.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
query.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
snapshot.go [snapshot] Elide writes for RRO with no changes (#15976) 2024-04-18 22:09:08 +00:00
snapshot_test.go Remove `Step.Apply`'s `preview` parameter (#16367) 2024-06-14 10:19:13 +00:00
stack.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
updates.go [cli] Include config from ESC in `pulumi config` (#14560) 2023-11-21 10:44:45 +00:00
watch.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00