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.

mirror.go 920B

1234567891011121314151617181920212223242526
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. // CreatePushMirrorOption represents need information to create a push mirror of a repository.
  5. type CreatePushMirrorOption struct {
  6. RemoteAddress string `json:"remote_address"`
  7. RemoteUsername string `json:"remote_username"`
  8. RemotePassword string `json:"remote_password"`
  9. Interval string `json:"interval"`
  10. SyncOnCommit bool `json:"sync_on_commit"`
  11. }
  12. // PushMirror represents information of a push mirror
  13. // swagger:model
  14. type PushMirror struct {
  15. RepoName string `json:"repo_name"`
  16. RemoteName string `json:"remote_name"`
  17. RemoteAddress string `json:"remote_address"`
  18. CreatedUnix string `json:"created"`
  19. LastUpdateUnix string `json:"last_update"`
  20. LastError string `json:"last_error"`
  21. Interval string `json:"interval"`
  22. SyncOnCommit bool `json:"sync_on_commit"`
  23. }