Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountUsers ¶
CountUsers returns the set of users as a map from username to the number of times that user appears in the list.
func WriteUsers ¶
WriteUsers writes the users to the output file. If the output file already exists, the users will be merged into the existing output file.
Types ¶
type XmlUser ¶
type XmlUser struct { ID int `xml:"id"` Username string `xml:"username"` Email string `xml:"email"` Name string `xml:"name"` }
User for the user.xml file.
func AppendUsersFromFile ¶
appendUsersFromFile appends the list of new users to the list of users from the XML file. The newly looked up users will replace users having the same ID in the XML file.
func FromGitlabUser ¶
func FromGitlabUser(glUser *gitlab.User) *XmlUser
FromGitlabUser converts from gitlab.User to gilab_util.XmlUser by removing all the unnecessary user information.
func FromGitlabUsers ¶
func FromGitlabUsers(glUsers []*gitlab.User) []*XmlUser
FromGitlabUsers converts from gitlab.User slice to gilab_util.XmlUser slice by removing all the unnecessary user information.