mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-30 06:39:33 +07:00
feat(gitea): basic config structure in Go
This commit is contained in:
@ -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
|
||||
|
28
platform/gitea/files/config-as-code/main.go
Normal file
28
platform/gitea/files/config-as-code/main.go
Normal 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() {}
|
Reference in New Issue
Block a user