pushsecret_interfaces.go 1.3 KB

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