Documentation ¶
Index ¶
- Variables
- func NewCmdStepGitCredentials(commonOpts *opts.CommonOptions) *cobra.Command
- type StepGitCredentialsOptions
- func (o *StepGitCredentialsOptions) CreateGitCredentialsFromAuthService(authConfigSvc auth.ConfigService, githubAppEnabled bool) ([]credentialhelper.GitCredential, error)
- func (o *StepGitCredentialsOptions) GitCredentialsFileData(credentials []credentialhelper.GitCredential) ([]byte, error)
- func (o *StepGitCredentialsOptions) Run() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StepGitCredentialsLong = templates.LongDesc(` This pipeline step generates a Git credentials file for the current Git provider secrets `) StepGitCredentialsExample = templates.Examples(` # generate the Git credentials file in the canonical location jx step git credentials # generate the Git credentials to a output file jx step git credentials -o /tmp/mycreds # respond to a gitcredentials request jx step git credentials --credential-helper `) )
Functions ¶
func NewCmdStepGitCredentials ¶
func NewCmdStepGitCredentials(commonOpts *opts.CommonOptions) *cobra.Command
Types ¶
type StepGitCredentialsOptions ¶
type StepGitCredentialsOptions struct { step.StepOptions OutputFile string // Deprecated GitHubAppOwner string RepoOwner string GitKind string CredentialsSecret string CredentialHelper bool }
StepGitCredentialsOptions contains the command line flags
func (*StepGitCredentialsOptions) CreateGitCredentialsFromAuthService ¶
func (o *StepGitCredentialsOptions) CreateGitCredentialsFromAuthService(authConfigSvc auth.ConfigService, githubAppEnabled bool) ([]credentialhelper.GitCredential, error)
CreateGitCredentialsFromAuthService creates the git credentials using the auth config service
func (*StepGitCredentialsOptions) GitCredentialsFileData ¶
func (o *StepGitCredentialsOptions) GitCredentialsFileData(credentials []credentialhelper.GitCredential) ([]byte, error)
GitCredentialsFileData takes the given git credentials and writes them into a byte array.
func (*StepGitCredentialsOptions) Run ¶
func (o *StepGitCredentialsOptions) Run() error
Click to show internal directories.
Click to hide internal directories.