envfactory

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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

func (o *EnvFactory) CreateScmClient(gitServer, _, gitKind string) (*scm.Client, string, error)

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

Jump to

Keyboard shortcuts

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