mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-23 03:34:30 -05:00
Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com>
31 lines
585 B
Go
31 lines
585 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 xor
|
|
|
|
import (
|
|
"github.com/opentofu/opentofu/internal/encryption/keyprovider"
|
|
)
|
|
|
|
func New() Descriptor {
|
|
return &descriptor{}
|
|
}
|
|
|
|
// Descriptor is an additional interface to allow for providing custom methods.
|
|
type Descriptor interface {
|
|
keyprovider.Descriptor
|
|
}
|
|
|
|
type descriptor struct {
|
|
}
|
|
|
|
func (f descriptor) ID() keyprovider.ID {
|
|
return "xor"
|
|
}
|
|
|
|
func (f descriptor) ConfigStruct() keyprovider.Config {
|
|
return &Config{}
|
|
}
|