Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitCredentialsFile ¶
func GitCredentialsFile() string
GitCredentialsFile returns the location of the git credentials file
func InGitHubActions ¶
func InGitHubActions() bool
InGitHubActions returns true if we are running inside a github action
Types ¶
type Options ¶
type Options struct { Dir string UserName string UserEmail string Password string OutputFile string Namespace string OperatorNamespace string SecretName string GitURL string GitProviderURL string GitInitCommands string DisableInClusterTest bool KubeClient kubernetes.Interface CommandRunner cmdrunner.CommandRunner Requirements *jxcore.Requirements // contains filtered or unexported fields }
Options the options for the command
func NewCmdGitSetup ¶
NewCmdGitSetup creates a command object for the command
func (*Options) GitCredentialsFileData ¶
func (o *Options) GitCredentialsFileData(credentials []credentialhelper.GitCredential) ([]byte, error)
GitCredentialsFileData takes the given git credentials and writes them into a byte array.
Click to show internal directories.
Click to hide internal directories.