Documentation ¶
Index ¶
- func ToIOHandles(handles *util.IOFileHandles) util.IOFileHandles
- type JXAdapter
- func (a *JXAdapter) FindGitTokenForServer(serverURL string, owner string) (string, string, error)
- func (a *JXAdapter) NewCommonOptions() *opts.CommonOptions
- func (a *JXAdapter) ScmClient(serverURL string, owner string, kind string) (*scm.Client, string, error)
- func (a *JXAdapter) ScmClientForRepository(gitInfo *gits.GitRepository) (*scm.Client, string, error)
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 ¶
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) FindGitTokenForServer ¶
FindGitTokenForServer finds the git token and kind for the given server URL
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.