Documentation ¶
Index ¶
- type EnvFactory
- func (o *EnvFactory) AddFlags(cmd *cobra.Command)
- func (o *EnvFactory) CreateDevEnvGitRepository(dir string, gitPublic bool) error
- func (o *EnvFactory) CreatePullRequest(dir, gitURL, kind, branchName, commitTitle, commitBody string) error
- func (o *EnvFactory) CreateScmClient(gitServer, _, gitKind string) (*scm.Client, string, error)
- func (o *EnvFactory) GetInput() input.Interface
- func (o *EnvFactory) PrintBootJobInstructions(link string) error
- func (o *EnvFactory) PushToGit(cloneURL, dir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvFactory ¶
type EnvFactory struct { KubeClient kubernetes.Interface JXClient versioned.Interface Gitter gitclient.Interface CommandRunner cmdrunner.CommandRunner ScmClientFactory scmhelpers.Factory Input input.Interface RepoName string GitURLOutFile string OutDir string IOFileHandles *files.IOFileHandles ScmClient *scm.Client BatchMode bool CreatedRepository *scmhelpers.CreateRepository CreatedScmRepository *scm.Repository }
func (*EnvFactory) AddFlags ¶
func (o *EnvFactory) AddFlags(cmd *cobra.Command)
AddFlags adds common CLI flags
func (*EnvFactory) CreateDevEnvGitRepository ¶
func (o *EnvFactory) CreateDevEnvGitRepository(dir string, gitPublic bool) error
CreateDevEnvGitRepository creates the dev environment git repository from the given directory
func (*EnvFactory) CreatePullRequest ¶
func (o *EnvFactory) CreatePullRequest(dir, gitURL, kind, branchName, commitTitle, commitBody string) error
CreatePullRequest crates a pull request if there are git changes
func (*EnvFactory) CreateScmClient ¶
CreateScmClient creates a new scm client
func (*EnvFactory) GetInput ¶
func (o *EnvFactory) GetInput() input.Interface
GetInput lazily creates the input interface
func (*EnvFactory) PrintBootJobInstructions ¶
func (o *EnvFactory) PrintBootJobInstructions(link string) error
PrintBootJobInstructions prints the instructions to run the installer
func (*EnvFactory) PushToGit ¶
func (o *EnvFactory) PushToGit(cloneURL, dir string) error
PushToGit pushes to the git repository
Click to show internal directories.
Click to hide internal directories.