pushsecret_interfaces.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. Copyright © 2025 ESO Maintainer Team
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. https://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package v1beta1
  14. import apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
  15. // +kubebuilder:object:root=false
  16. // +kubebuilder:object:generate:false
  17. // +k8s:deepcopy-gen:interfaces=nil
  18. // +k8s:deepcopy-gen=nil
  19. // PushSecretData is an interface to allow using v1alpha1.PushSecretData content in Provider registered in v1beta1.
  20. type PushSecretData interface {
  21. GetMetadata() *apiextensionsv1.JSON
  22. GetSecretKey() string
  23. GetRemoteKey() string
  24. GetProperty() string
  25. }
  26. // +kubebuilder:object:root=false
  27. // +kubebuilder:object:generate:false
  28. // +k8s:deepcopy-gen:interfaces=nil
  29. // +k8s:deepcopy-gen=nil
  30. // PushSecretRemoteRef is an interface to allow using v1alpha1.PushSecretRemoteRef in Provider registered in v1beta1.
  31. type PushSecretRemoteRef interface {
  32. GetRemoteKey() string
  33. GetProperty() string
  34. }