jx: github.com/jenkins-x/jx/pkg/cmd/step/git/credentials Index | Files

package credentials

import "github.com/jenkins-x/jx/pkg/cmd/step/git/credentials"

Index

Package Files

step_git_credentials.go

Variables

var (
    StepGitCredentialsLong = templates.LongDesc(`
		This pipeline step generates a Git credentials file for the current Git provider secrets

`)

    StepGitCredentialsExample = templates.Examples("" /* 273 byte string literal not displayed */,
    )
)

func NewCmdStepGitCredentials Uses

func NewCmdStepGitCredentials(commonOpts *opts.CommonOptions) *cobra.Command

type StepGitCredentialsOptions Uses

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 Uses

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 Uses

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 Uses

func (o *StepGitCredentialsOptions) Run() error

Package credentials imports 17 packages (graph). Updated 2020-12-03. Refresh now. Tools for package owners.