push_secret_data.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 fake
  13. import apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
  14. type PushSecretData struct {
  15. Metadata *apiextensionsv1.JSON
  16. SecretKey string
  17. RemoteKey string
  18. Property string
  19. }
  20. func (f PushSecretData) GetMetadata() *apiextensionsv1.JSON {
  21. return f.Metadata
  22. }
  23. func (f PushSecretData) GetSecretKey() string {
  24. return f.SecretKey
  25. }
  26. func (f PushSecretData) GetRemoteKey() string {
  27. return f.RemoteKey
  28. }
  29. func (f PushSecretData) GetProperty() string {
  30. return f.Property
  31. }