jxadapt

package
v0.0.90 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToIOHandles

func ToIOHandles(handles *util.IOFileHandles) util.IOFileHandles

ToIOHandles handles lazily creating the IO handles if they are nil

Types

type JXAdapter

type JXAdapter struct {
	JXFactory jxfactory.Factory
	Gitter    gits.Gitter
	BatchMode bool
	NoOAuth   bool
	// contains filtered or unexported fields
}

JXAdapter an adapter between new clean code and the classic CommonOptions abstractions in jx to allow us to move new code away from CommonOptions while reusing existing code

func NewJXAdapter

func NewJXAdapter(f jxfactory.Factory, gitter gits.Gitter, batch bool) *JXAdapter

NewJXAdapter creates a new adapter

func (*JXAdapter) NewCommonOptions

func (a *JXAdapter) NewCommonOptions() *opts.CommonOptions

NewCommonOptions creates a CommonOptions that can be used for integrating with jx code which uses it

func (*JXAdapter) ScmClient

func (a *JXAdapter) ScmClient(serverURL string, owner string, kind string) (*scm.Client, string, error)

ScmClient creates a new Scm client for the given git server, owner and kind

func (*JXAdapter) ScmClientForRepository

func (a *JXAdapter) ScmClientForRepository(gitInfo *gits.GitRepository) (*scm.Client, string, error)

ScmClientForRepository creates a new Scm client for the given git repository

Jump to

Keyboard shortcuts

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