1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-15 17:51:01 +00:00
external-secrets/pkg/provider/testing/fake/push_secret_data.go
Shuhei Kitagawa c9b3f97425
Refactor the PushSecret interface (#2859)
Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>
2023-11-08 06:47:13 +09:00

40 lines
1 KiB
Go

/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package fake
import apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
type PushSecretData struct {
Metadata *apiextensionsv1.JSON
SecretKey string
RemoteKey string
Property string
}
func (f PushSecretData) GetMetadata() *apiextensionsv1.JSON {
return f.Metadata
}
func (f PushSecretData) GetSecretKey() string {
return f.SecretKey
}
func (f PushSecretData) GetRemoteKey() string {
return f.RemoteKey
}
func (f PushSecretData) GetProperty() string {
return f.Property
}