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