rover

package
v0.0.0-...-3e831d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapGithubToKerberos

func MapGithubToKerberos(users []User) map[string]string

Projects a list of users into a dictionary that maps a user GitHub username to his Kerberos ID. By default, when two users have the same GitHub username and then collide the first is kept and the latter gets skipped.

Types

type User

type User struct {
	GitHubUsername string `json:"github_username,omitempty"`
	UID            string `json:"uid,omitempty"`
	CostCenter     string `json:"cost_center,omitempty"`
}

type UserItem

type UserItem struct {
	User
	Created time.Time
}

func (*UserItem) Save

func (u *UserItem) Save() (map[string]bigquery.Value, string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL