credentials

package
v2.1.153 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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