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.

variable.go 1.0KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2024 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. // CreateVariableOption the option when creating variable
  5. // swagger:model
  6. type CreateVariableOption struct {
  7. // Value of the variable to create
  8. //
  9. // required: true
  10. Value string `json:"value" binding:"Required"`
  11. }
  12. // UpdateVariableOption the option when updating variable
  13. // swagger:model
  14. type UpdateVariableOption struct {
  15. // New name for the variable. If the field is empty, the variable name won't be updated.
  16. Name string `json:"name"`
  17. // Value of the variable to update
  18. //
  19. // required: true
  20. Value string `json:"value" binding:"Required"`
  21. }
  22. // ActionVariable return value of the query API
  23. // swagger:model
  24. type ActionVariable struct {
  25. // the owner to which the variable belongs
  26. OwnerID int64 `json:"owner_id"`
  27. // the repository to which the variable belongs
  28. RepoID int64 `json:"repo_id"`
  29. // the name of the variable
  30. Name string `json:"name"`
  31. // the value of the variable
  32. Data string `json:"data"`
  33. }