/
githubmirror
/
terraform
Обзор
Документация
Войти
/
githubmirror
/
terraform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/stacks/stackutils/proto_util.go
22 строки
602 B
Radek Simko
make copyrightfix
17 фев 2026, 16:56
17 фев 2026, 16:56
0fe906f
Код
Авторство
О чём код?
// Copyright IBM Corp. 2014, 2026 // SPDX-License-Identifier: BUSL-1.1 package stackutils import ( "github.com/hashicorp/terraform/internal/addrs" "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" ) func ResourceModeForProto(mode addrs.ResourceMode) stacks.ResourceMode { switch mode { case addrs.ManagedResourceMode: return stacks.ResourceMode_MANAGED case addrs.DataResourceMode: return stacks.ResourceMode_DATA default: // Should not get here, because the above should be exhaustive for // all addrs.ResourceMode variants. return stacks.ResourceMode_UNKNOWN } }