envfactory

package
v0.0.93 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsScmNotFound

func IsScmNotFound(err error) bool

Types

type CreateRepository

type CreateRepository struct {
	GitServer       string
	GitKind         string
	Owner           string
	Repository      string
	CurrentUsername string
	GitPublic       bool
}

func (*CreateRepository) ConfirmValues

func (r *CreateRepository) ConfirmValues(batch bool, handles util.IOFileHandles) error

ConfirmValues confirms to the user the values to be used to create the new git repository if using batch mode lets just validate the values are supplied or fail

func (*CreateRepository) CreateRepository

func (r *CreateRepository) CreateRepository(scmClient *scm.Client) (*scm.Repository, error)

CreateRepository creates the git repository if it does not already exist

func (*CreateRepository) FullName

func (r *CreateRepository) FullName() string

type EnvFactory

type EnvFactory struct {
	JXFactory     jxfactory.Factory
	Gitter        gits.Gitter
	RepoName      string
	GitURLOutFile string
	OutDir        string
	IOFileHandles *util.IOFileHandles
	ScmClient     *scm.Client
	BatchMode     bool
	NoOAuth       bool
}

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) CreateScmClient

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

CreateScmClient creates a new scm client

func (*EnvFactory) JXAdapter

func (o *EnvFactory) JXAdapter() *jxadapt.JXAdapter

JXAdapter creates an adapter to the jx code

func (*EnvFactory) PrintBootJobInstructions

func (o *EnvFactory) PrintBootJobInstructions(requirements *config.RequirementsConfig, link string) error

PrintBootJobInstructions prints the instructions to run the installer

func (*EnvFactory) PushToGit

func (o *EnvFactory) PushToGit(cloneURL string, userAuth *auth.UserAuth, dir string) error

PushToGit pushes to the git repository

func (*EnvFactory) VerifyPreInstall

func (o *EnvFactory) VerifyPreInstall(disableVerifyPackages bool, dir string) error

VerifyPreInstall verify the pre install of boot

Jump to

Keyboard shortcuts

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