feat(gitea): basic config structure in Go

This commit is contained in:
Khue Doan
2022-03-15 00:30:17 +07:00
parent 166c1a93e3
commit c0375483f8
2 changed files with 35 additions and 2 deletions

View File

@ -1,7 +1,6 @@
users:
- name: renovate
token:
secretRef: renovate-secret # ???
tokenSecretRef: renovate-secret # ???
organizations:
- name: ops
members:
@ -11,5 +10,11 @@ repositories:
migrate:
source: https://github.com/khuedoan/homelab
mirror: false
webhooks:
- http://gitea-webhook.tekton-pipelines:3000
- path: khuedoan/blog
webhooks:
- http://gitea-webhook.tekton-pipelines:3000
- path: khuedoan/backstage
webhooks:
- http://gitea-webhook.tekton-pipelines:3000

View File

@ -0,0 +1,28 @@
package main
type User struct {
Name string
TokenSecretRef string
}
type Organization struct {
Name string
Members []string
}
type Repository struct {
Path string
Migrate struct {
Source string
Mirror bool
}
Webhooks []string
}
type Config struct {
Users []User
Organizations []Organization
Repositories []Repository
}
func main() {}