pulumi/pkg/backend/filestate
Fraser Waters 6e6735ed29
Remove Logout logic from Backend interface (#13951)
<!--- 
Thanks so much for your contribution! If this is your first time
contributing, please ensure that you have read the
[CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md)
documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context. -->

Backends themselves don't actually need any logout logic. Logging out is
mearly a function of deleting the account from the credentials file and
is the same for filestate, httpstate and probably any other state we
introduce.

This also simplifies the code "logout --all" which used to try and
lookup the project, make up a dummy httpstate object, and then call
LogoutAll to call workspace.DeleteAllAccounts. Now it goes straight to
that last call.

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [ ] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2023-09-18 17:21:32 +00:00
..
backend.go Remove Logout logic from Backend interface (#13951) 2023-09-18 17:21:32 +00:00
backend_legacy_test.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
backend_test.go Add tests for stackChangeSecretsProviderCmd (#13791) 2023-08-31 08:56:38 +00:00
bucket.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
bucket_test.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
lock.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
meta.go Fix auto-opt-in for local project stacks 2023-06-22 13:36:52 +01:00
meta_test.go Fix auto-opt-in for local project stacks 2023-06-22 13:36:52 +01:00
pool.go filestate: Add re-usable worker pool 2023-06-12 09:20:26 -07:00
pool_test.go filestate: Add re-usable worker pool 2023-06-12 09:20:26 -07:00
snapshot.go pkg/filestate: Plumb context 2023-04-10 15:53:32 -07:00
stack.go Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
state.go Fix auto-opt-in for local project stacks 2023-06-22 13:36:52 +01:00
store.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
store_test.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00