mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-22 19:24:37 -05:00
Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> Signed-off-by: ollevche <ollevche@gmail.com> Co-authored-by: Oleksandr Levchenkov <ollevche@gmail.com>
36 lines
610 B
Go
36 lines
610 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package external
|
|
|
|
import (
|
|
"github.com/opentofu/opentofu/internal/encryption/keyprovider"
|
|
)
|
|
|
|
func New() Descriptor {
|
|
return &descriptor{}
|
|
}
|
|
|
|
type Descriptor interface {
|
|
keyprovider.Descriptor
|
|
|
|
TypedConfig() *Config
|
|
}
|
|
|
|
type descriptor struct {
|
|
}
|
|
|
|
func (f descriptor) ID() keyprovider.ID {
|
|
return "external"
|
|
}
|
|
|
|
func (f descriptor) TypedConfig() *Config {
|
|
return &Config{}
|
|
}
|
|
|
|
func (f descriptor) ConfigStruct() keyprovider.Config {
|
|
return f.TypedConfig()
|
|
}
|