users

package
v1.3.730 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 7 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 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

func (r *GitUserResolver) GitUserAsUser(user *gits.GitUser) (*jenkinsv1.User, error)

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

func (r *GitUserResolver) UserToGitUser(id string, user *jenkinsv1.User) *gits.GitUser

UserToGitUser performs type conversion from a Jenkins X User to a Git User

Jump to

Keyboard shortcuts

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