Go script for syncing LDAP user group membership to Gitea
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.
 
 
 

48 lines
1.2 KiB

package main
type Organization struct {
Id int `json:"id"`
Avatar_url string `json:"avatar_url"`
Description string `json:"description"`
Full_name string `json:"full_name"`
Location string `json:"location"`
Name string `json:"username"`
Visibility string `json:"visibility"`
Website string `json:"website"`
}
type Team struct {
Id int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Permission string `json:"permission"`
}
type User struct {
Id int `json:"id"`
Avatar_url string `json:"avatar_url"`
Created string `json:"created"`
Email string `json:"email"`
Full_name string `json:"full_name"`
Is_admin bool `json:"is_admin"`
Language string `json:"language"`
Last_login string `json:"last_login"`
Login string `json:"login"`
}
type Account struct {
Id int `json:"id"`
Full_name string `json:"full_name"`
Login string `json:"login"`
}
type SearchResults struct {
Data []User `json:"data"`
Ok bool `json:"ok"`
}
type GiteaKeys struct {
TokenKey []string
BaseUrl string
Command string
BruteforceTokenKey int
}