You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

secret.go 544B

123456789101112131415161718192021222324
  1. // Copyright 2023 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. import "time"
  5. // Secret represents a secret
  6. // swagger:model
  7. type Secret struct {
  8. // the secret's name
  9. Name string `json:"name"`
  10. // swagger:strfmt date-time
  11. Created time.Time `json:"created_at"`
  12. }
  13. // CreateOrUpdateSecretOption options when creating or updating secret
  14. // swagger:model
  15. type CreateOrUpdateSecretOption struct {
  16. // Data of the secret to update
  17. //
  18. // required: true
  19. Data string `json:"data" binding:"Required"`
  20. }