users

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitUserResolver

type GitUserResolver struct {
	GitProvider *scm.Client
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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