Documentation ¶
Index ¶
- type GitUserResolver
- func (r *GitUserResolver) GitProviderKey() string
- func (r *GitUserResolver) GitSignatureAsUser(signature *object.Signature) (*jenkinsv1.UserDetails, error)
- func (r *GitUserResolver) GitUserSliceAsUserDetailsSlice(users []scm.User) ([]jenkinsv1.UserDetails, error)
- func (r *GitUserResolver) GitUserToUser(gitUser *scm.User) *jenkinsv1.UserDetails
- func (r *GitUserResolver) Resolve(user *scm.User) (*jenkinsv1.UserDetails, error)
- type UserDetailService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitUserResolver ¶
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) GitSignatureAsUser ¶
func (r *GitUserResolver) GitSignatureAsUser(signature *object.Signature) (*jenkinsv1.UserDetails, error)
GitSignatureAsUser resolves the signature to a Jenkins X User
func (*GitUserResolver) GitUserSliceAsUserDetailsSlice ¶
func (r *GitUserResolver) GitUserSliceAsUserDetailsSlice(users []scm.User) ([]jenkinsv1.UserDetails, error)
GitUserSliceAsUserDetailsSlice resolves a slice of git users to a slice of Jenkins X User Details
func (*GitUserResolver) GitUserToUser ¶
func (r *GitUserResolver) GitUserToUser(gitUser *scm.User) *jenkinsv1.UserDetails
GitUserToUser performs type conversion from a GitUser to a Jenkins X user, attaching the Git Provider account to Accounts
func (*GitUserResolver) Resolve ¶
func (r *GitUserResolver) Resolve(user *scm.User) (*jenkinsv1.UserDetails, error)
Resolve 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
type UserDetailService ¶
type UserDetailService struct {
// contains filtered or unexported fields
}
func (*UserDetailService) CreateOrUpdateUser ¶
func (s *UserDetailService) CreateOrUpdateUser(u *v1.UserDetails) error
func (*UserDetailService) GetUser ¶
func (s *UserDetailService) GetUser(login string) *v1.UserDetails