model.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package ots
  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. //
  6. //http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. //Unless required by applicable law or agreed to in writing, software
  9. //distributed under the License is distributed on an "AS IS" BASIS,
  10. //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. //See the License for the specific language governing permissions and
  12. //limitations under the License.
  13. const ApiVersion = "v1"
  14. type CreateTriggerRequestBody struct {
  15. RoleArn string
  16. TriggerName string
  17. UdfInfo *UdfInfo
  18. }
  19. type TriggerResponseBase struct {
  20. Code string
  21. Message string
  22. }
  23. type CreateTriggerResponseBody struct {
  24. TriggerResponseBase
  25. Etag string
  26. }
  27. type GetTriggerResponseBody struct {
  28. TriggerResponseBase
  29. Trigger *TriggerInfo
  30. }
  31. type ListTriggerResponseBody struct {
  32. TriggerResponseBase
  33. Triggers []*TriggerInfo
  34. }
  35. type UdfInfo struct {
  36. ServiceName string
  37. FunctionName string
  38. }
  39. type TriggerInfo struct {
  40. TriggerName string
  41. AssumeRole string
  42. CreateTime int64
  43. InstanceName string
  44. DataTable string
  45. UdfInfo *UdfInfo
  46. Etag string
  47. TimerId string
  48. }