Documentation ¶
Index ¶
- Constants
- func NewCmdConsole(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGet(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdImport(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstall(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdNamespace(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdOpen(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdVersion(f cmdutil.Factory, out io.Writer) *cobra.Command
- func NewJXCommand(f cmdutil.Factory, in io.Reader, out, err io.Writer) *cobra.Command
- func RunGet(f cmdutil.Factory, out, errOut io.Writer, cmd *cobra.Command, args []string, ...) error
- func RunInstall(f cmdutil.Factory, out, errOut io.Writer, cmd *cobra.Command, args []string, ...) error
- func RunVersion(f cmdutil.Factory, out io.Writer, cmd *cobra.Command) error
- type CommonOptions
- type ConsoleOptions
- type GetOptions
- type ImportOptions
- type InstallFlags
- type InstallOptions
- type NamespaceOptions
- type OpenOptions
- type Secrets
Constants ¶
const ( JX_GIT_TOKEN = "JX_GIT_TOKEN" JX_GIT_USER = "JX_GIT_USER" JX_GIT_PASSWORD = "JX_GIT_PASSWORD" )
Variables ¶
This section is empty.
Functions ¶
func NewCmdConsole ¶
func NewCmdGet ¶
NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.
func NewCmdImport ¶
func NewCmdInstall ¶
NewCmdGet creates a command object for the generic "install" action, which installs the jenkins-x platform on a kubernetes cluster.
func NewCmdNamespace ¶
func NewCmdOpen ¶
func NewJXCommand ¶
NewJXCommand creates the `jx` command and its nested children.
func RunGet ¶
func RunGet(f cmdutil.Factory, out, errOut io.Writer, cmd *cobra.Command, args []string, options *GetOptions) error
RunGet implements the generic Get command TODO: convert all direct flag accessors to a struct and pass that instead of cmd
Types ¶
type CommonOptions ¶
type CommonOptions struct { Factory cmdutil.Factory Out io.Writer Err io.Writer Cmd *cobra.Command Args []string }
CommonOptions contains common options and helper methods
func (*CommonOptions) CreateTable ¶
func (c *CommonOptions) CreateTable() table.Table
type ConsoleOptions ¶
type ConsoleOptions struct { CommonOptions OnlyViewURL bool }
func (*ConsoleOptions) Run ¶
func (o *ConsoleOptions) Run() error
type GetOptions ¶
type GetOptions struct {
CommonOptions
}
GetOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()
type ImportOptions ¶
type ImportOptions struct { CommonOptions Dir string Organisation string Repository string Credentials string Jenkins *gojenkins.Jenkins }
func (*ImportOptions) Import ¶
func (o *ImportOptions) Import(url string) error
func (*ImportOptions) ImportDirectory ¶
func (o *ImportOptions) ImportDirectory(dir string) error
ImportDirectory finds the git url by looking in the given directory and looking for a .git/config file
func (*ImportOptions) Run ¶
func (o *ImportOptions) Run() error
type InstallFlags ¶
type InstallOptions ¶
type InstallOptions struct { Factory cmdutil.Factory Out io.Writer Err io.Writer Flags InstallFlags }
GetOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()
type NamespaceOptions ¶
type NamespaceOptions struct { CommonOptions Choose bool }
func (*NamespaceOptions) PickNamespace ¶
func (o *NamespaceOptions) PickNamespace(client *kubernetes.Clientset, defaultNamespace string) (string, error)
func (*NamespaceOptions) Run ¶
func (o *NamespaceOptions) Run() error
type OpenOptions ¶
type OpenOptions struct {
ConsoleOptions
}
func (*OpenOptions) Run ¶
func (o *OpenOptions) Run() error