Documentation ¶
Index ¶
- type GitUserResolver
- func (r *GitUserResolver) GitProviderKey() string
- func (r *GitUserResolver) GitUserAsUser(user *gits.GitUser) (*jenkinsv1.User, error)
- func (r *GitUserResolver) GitUserToUser(gitUser *gits.GitUser) *jenkinsv1.User
- func (r *GitUserResolver) UserToGitUser(id string, user *jenkinsv1.User) *gits.GitUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitUserResolver ¶
type GitUserResolver struct { GitProvider gits.GitProvider JXClient jenkninsv1client.Interface Namespace string }
GitUserResolver allows git users to be converted to Jenkins X users
func (*GitUserResolver) GitProviderKey ¶
func (r *GitUserResolver) GitProviderKey() string
GitProviderKey returns the provider key for this GitUserResolver
func (*GitUserResolver) GitUserAsUser ¶ added in v1.3.721
GitUserAsUser will convert the GitUser to a Jenkins X user and attempt to complete the user info by: * checking the user custom resources to see if the user is present there * making a call to the gitProvider as often user info is not complete in a git response
func (*GitUserResolver) GitUserToUser ¶
func (r *GitUserResolver) GitUserToUser(gitUser *gits.GitUser) *jenkinsv1.User
GitUserToUser performs type conversion from a GitUser to a Jenkins X user, attaching the Git Provider account to Accounts
func (*GitUserResolver) UserToGitUser ¶
UserToGitUser performs type conversion from a Jenkins X User to a Git User
Click to show internal directories.
Click to hide internal directories.