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 ¶
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
Click to show internal directories.
Click to hide internal directories.