cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
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 NewCmdConsole(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command

func NewCmdGet

func NewCmdGet(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.

func NewCmdImport

func NewCmdImport(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command

func NewCmdInstall

func NewCmdInstall(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGet creates a command object for the generic "install" action, which installs the jenkins-x platform on a kubernetes cluster.

func NewCmdNamespace

func NewCmdNamespace(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command

func NewCmdOpen

func NewCmdOpen(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command

func NewCmdVersion

func NewCmdVersion(f cmdutil.Factory, out io.Writer) *cobra.Command

func NewJXCommand

func NewJXCommand(f cmdutil.Factory, in io.Reader, out, err io.Writer) *cobra.Command

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

func RunInstall

func RunInstall(f cmdutil.Factory, out, errOut io.Writer, cmd *cobra.Command, args []string, options *InstallOptions) error

RunInstall implements the generic Install command

func RunVersion

func RunVersion(f cmdutil.Factory, out io.Writer, cmd *cobra.Command) error

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

func (o *ConsoleOptions) Open(name string, label string) error

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 InstallFlags struct {
	Domain             string
	GitProvider        string
	GitToken           string
	GitUser            string
	GitPass            string
	KubernetesProvider string
	CloudEnvRepository string
}

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

type Secrets

type Secrets struct {
	Login string
	Token string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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