Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

mirror.go 898B

12345678910111213141516171819202122232425
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. // CreatePushMirrorOption represents need information to create a push mirror of a repository.
  6. type CreatePushMirrorOption struct {
  7. RemoteAddress string `json:"remote_address"`
  8. RemoteUsername string `json:"remote_username"`
  9. RemotePassword string `json:"remote_password"`
  10. Interval string `json:"interval"`
  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. }