cmd

package
v1.0.111 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 68 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GKE      = "gke"
	EKS      = "eks"
	AKS      = "aks"
	MINIKUBE = "minikube"
	JX_INFRA = "jx-infra"
)
View Source
const (
	INGRESS_SERVICE_NAME    = "jxing-nginx-ingress-controller"
	DEFAULT_CHARTMUSEUM_URL = "http://chartmuseum.build.cd.jenkins-x.io"
)
View Source
const (
	JX_GIT_TOKEN                   = "JX_GIT_TOKEN"
	JX_GIT_USER                    = "JX_GIT_USER"
	DEFAULT_CLOUD_ENVIRONMENTS_URL = "https://github.com/jenkins-x/cloud-environments"

	GitSecretsFile   = "gitSecrets.yaml"
	AdminSecretsFile = "adminSecrets.yaml"
	ExtraValuesFile  = "extraValues.yaml"
)
View Source
const (
	ReleaseName = `{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}`

	SpecName    = `{{ .Chart.Name }}`
	SpecVersion = `{{ .Chart.Version }}`

	ReleaseCrdYaml = `` /* 498-byte string literal not displayed */

)
View Source
const CLUSTER_LIST_HEADER = "PROJECT_ID"
View Source
const (
	DefaultShell = "/bin/sh"
)
View Source
const (
	DefaultWritePermissions = 0760
)
View Source
const (
	VERSION = "version"
)

Variables

View Source
var (
	MetricsLong = templates.LongDesc(`
		Gets the metrics of the newest pod for a Deployment.

`)

	MetricsExample = templates.Examples(`
		# displays metrics of the latest pod in deployment myapp
		jx metrics myapp

		# Tails the metrics of the container foo in the latest pod in deployment myapp
		jx metrics myapp -c foo
`)
)
View Source
var (
	StepChangelogLong = templates.LongDesc(`
		Generates a Changelog for the last tag

`)

	StepChangelogExample = templates.Examples(`
		jx step changelog

`)

	GitHubIssueRegex = regexp.MustCompile(`(\#\d+)`)
)
View Source
var (
	StepNexusDropLong = templates.LongDesc(`
		This pipeline step command drops a Staging Nexus Repository

`)

	StepNexusDropExample = templates.Examples(`
		jx step nexus drop

`)
)
View Source
var (
	StepNexusReleaseLong = templates.LongDesc(`
		This pipeline step command releases a Nexus staging repository
`)

	StepNexusReleaseExample = templates.Examples(`
		jx step nexus release

`)
)
View Source
var KUBERNETES_PROVIDERS = []string{MINIKUBE, GKE, AKS, JX_INFRA}

Functions

func GetNamespaceNames added in v1.0.2

func GetNamespaceNames(client *kubernetes.Clientset) ([]string, error)

GetNamespaceNames returns the sorted list of environment names

func IsPipeline added in v1.0.10

func IsPipeline(j *gojenkins.Job) bool

func NewCmdCDX added in v1.0.103

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

func NewCmdCompletion added in v1.0.2

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

func NewCmdConsole

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

func NewCmdContext added in v1.0.6

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

func NewCmdCreate added in v1.0.2

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

NewCmdCreate creates a command object for the "create" command

func NewCmdCreateAddon added in v1.0.54

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

NewCmdCreateAddon creates a command object for the "create" command

func NewCmdCreateAddonCDX added in v1.0.102

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

NewCmdCreateAddonCDX creates a command object for the "create" command

func NewCmdCreateAddonGitea added in v1.0.54

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

NewCmdCreateAddonGitea creates a command object for the "create" command

func NewCmdCreateArchetype added in v1.0.2

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

NewCmdCreateArchetype creates a command object for the "create" command

func NewCmdCreateCluster added in v1.0.2

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

NewCmdGet creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a kubernetes cluster.

func NewCmdCreateClusterAKS added in v1.0.2

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

NewCmdGet creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a kubernetes cluster.

func NewCmdCreateClusterGKE added in v1.0.2

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

NewCmdGet creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a kubernetes cluster.

func NewCmdCreateClusterMinikube added in v1.0.2

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

NewCmdGet creates a command object for the generic "init" action, which installs the dependencies required to run the jenkins-x platform on a kubernetes cluster.

func NewCmdCreateDocs added in v1.0.61

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

NewCmdCreateDocs creates a command object for the "create" command

func NewCmdCreateEnv added in v1.0.2

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

NewCmdCreateEnv creates a command object for the "create" command

func NewCmdCreateEtcHosts added in v1.0.55

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

NewCmdCreateEtcHosts creates a command object for the "create" command

func NewCmdCreateGit added in v1.0.16

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

NewCmdCreateGit creates a command object for the "create" command

func NewCmdCreateGitServer added in v1.0.40

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

NewCmdCreateGitServer creates a command object for the "create" command

func NewCmdCreateGitToken added in v1.0.43

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

NewCmdCreateGitToken creates a command

func NewCmdCreateGitUser added in v1.0.40

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

NewCmdCreateGitUser creates a command

func NewCmdCreateJenkins added in v1.0.41

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

NewCmdCreateJenkins creates a command object for the "create" command

func NewCmdCreateJenkinsUser added in v1.0.41

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

NewCmdCreateJenkinsUser creates a command

func NewCmdCreateSpring added in v1.0.2

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

NewCmdCreateSpring creates a command object for the "create" command

func NewCmdDelete added in v1.0.6

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

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

func NewCmdDeleteAddon added in v1.0.54

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

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

func NewCmdDeleteAddonGitea added in v1.0.54

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

NewCmdDeleteAddonGitea defines the command

func NewCmdDeleteEnv added in v1.0.6

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

NewCmdDeleteEnv creates a command object for the "delete repo" command

func NewCmdDeleteGit added in v1.0.39

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

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

func NewCmdDeleteGitServer added in v1.0.40

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

NewCmdDeleteGitServer defines the command

func NewCmdDeleteGitToken added in v1.0.45

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

NewCmdDeleteGitToken defines the command

func NewCmdDeleteJenkins added in v1.0.41

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

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

func NewCmdDeleteJenkinsUser added in v1.0.41

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

NewCmdDeleteJenkinsUser defines the command

func NewCmdDeleteRepo added in v1.0.6

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

NewCmdDeleteRepo creates a command object for the "delete repo" command

func NewCmdEdit added in v1.0.2

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

NewCmdEdit creates the edit command

func NewCmdEditEnv added in v1.0.2

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

NewCmdEditEnv creates a command object for the "create" command

func NewCmdEnvironment added in v1.0.2

func NewCmdEnvironment(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 NewCmdGetActivity added in v1.0.84

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

NewCmdGetActivity creates the new command for: jx get version

func NewCmdGetAddon added in v1.0.54

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

NewCmdGetAddon creates the command

func NewCmdGetBuild added in v1.0.61

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

NewCmdGetBuild creates the command object

func NewCmdGetBuildLogs added in v1.0.61

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

NewCmdGetBuildLogs creates the command

func NewCmdGetEnv added in v1.0.2

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

NewCmdGetEnv creates the new command for: jx get env

func NewCmdGetGit added in v1.0.16

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

NewCmdGetGit creates the command

func NewCmdGetPipeline added in v1.0.2

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

NewCmdGetPipeline creates the command

func NewCmdGetURL added in v1.0.2

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

NewCmdGetURL creates the command

func NewCmdGetVersion added in v1.0.2

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

NewCmdGetVersion creates the new command for: jx get version

func NewCmdImport

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

func NewCmdInit added in v1.0.2

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

NewCmdInit creates a command object for the generic "init" action, which primes a kubernetes cluster so it's ready for jenkins x to be installed

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 NewCmdLogs added in v1.0.2

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

func NewCmdMetrics added in v1.0.8

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

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 NewCmdPreview added in v1.0.83

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

NewCmdPreview creates a command object for the "create" command

func NewCmdPromote added in v1.0.2

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

NewCmdPromote creates the new command for: jx get prompt

func NewCmdPrompt added in v1.0.2

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

NewCmdPrompt creates the new command for: jx get prompt

func NewCmdRsh added in v1.0.10

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

func NewCmdShell added in v1.0.6

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

func NewCmdStart added in v1.0.10

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

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

func NewCmdStartPipeline added in v1.0.10

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

NewCmdStartPipeline creates the command

func NewCmdStep added in v1.0.19

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

NewCmdStep Steps a command object for the "step" command

func NewCmdStepChangelog added in v1.0.90

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

func NewCmdStepNexus added in v1.0.26

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

NewCmdStepNexus Steps a command object for the "step" command

func NewCmdStepNexusDrop added in v1.0.26

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

func NewCmdStepNexusRelease added in v1.0.26

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

func NewCmdStepPR added in v1.0.91

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

NewCmdStep Steps a command object for the "step" command

func NewCmdStepPRComment added in v1.0.91

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

NewCmdStep Steps a command object for the "step" command

func NewCmdStepTag added in v1.0.19

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

func NewCmdUninstall added in v1.0.2

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

func NewCmdUpgrade added in v1.0.51

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

NewCmdUpgrade creates the command

func NewCmdUpgradePlatform added in v1.0.51

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

NewCmdUpgradePlatform defines the command

func NewCmdVersion

func NewCmdVersion(f cmdutil.Factory, out io.Writer, errOut 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.

Types

type CDXOptions added in v1.0.103

type CDXOptions struct {
	CommonOptions

	OnlyViewURL bool
}

func (*CDXOptions) Open added in v1.0.103

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

func (*CDXOptions) OpenURL added in v1.0.103

func (o *CDXOptions) OpenURL(url string, label string) error

func (*CDXOptions) Run added in v1.0.103

func (o *CDXOptions) Run() error

type CommonOptions

type CommonOptions struct {
	Factory   cmdutil.Factory
	Out       io.Writer
	Err       io.Writer
	Cmd       *cobra.Command
	Args      []string
	BatchMode bool
	Verbose   bool
	Headless  bool
	// contains filtered or unexported fields
}

CommonOptions contains common options and helper methods

func (*CommonOptions) CreateTable

func (c *CommonOptions) CreateTable() table.Table

func (*CommonOptions) FindHelmChart added in v1.0.90

func (*CommonOptions) FindHelmChart() (string, error)

func (*CommonOptions) GetCloudProvider added in v1.0.38

func (o *CommonOptions) GetCloudProvider(p string) (string, error)

func (*CommonOptions) GetDomain added in v1.0.38

func (o *CommonOptions) GetDomain(client *kubernetes.Clientset, domain string, provider string) (string, error)

func (*CommonOptions) JXClient added in v1.0.2

func (o *CommonOptions) JXClient() (*versioned.Clientset, string, error)

func (*CommonOptions) JenkinsClient added in v1.0.10

func (o *CommonOptions) JenkinsClient() (*gojenkins.Jenkins, error)

func (*CommonOptions) KubeClient added in v1.0.2

func (o *CommonOptions) KubeClient() (*kubernetes.Clientset, string, error)

func (*CommonOptions) Printf added in v1.0.2

func (c *CommonOptions) Printf(format string, a ...interface{}) (n int, err error)

func (*CommonOptions) Run added in v1.0.2

func (o *CommonOptions) Run() error

func (*CommonOptions) TeamAndEnvironmentNames added in v1.0.2

func (o *CommonOptions) TeamAndEnvironmentNames() (string, string, error)

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 ContextOptions added in v1.0.6

type ContextOptions struct {
	CommonOptions
}

func (*ContextOptions) PickContext added in v1.0.6

func (o *ContextOptions) PickContext(names []string, defaultValue string) (string, error)

func (*ContextOptions) Run added in v1.0.6

func (o *ContextOptions) Run() error

type CreateAddonCDXOptions added in v1.0.102

type CreateAddonCDXOptions struct {
	CreateAddonOptions
}

CreateAddonCDXOptions the options for the create spring command

func (*CreateAddonCDXOptions) Run added in v1.0.102

func (o *CreateAddonCDXOptions) Run() error

Run implements the command

type CreateAddonGiteaOptions added in v1.0.54

type CreateAddonGiteaOptions struct {
	CreateAddonOptions

	Chart    string
	Username string
	Password string
	Email    string
	IsAdmin  bool
	NoUser   bool
	NoToken  bool
}

CreateAddonGiteaOptions the options for the create spring command

func (*CreateAddonGiteaOptions) Run added in v1.0.54

func (o *CreateAddonGiteaOptions) Run() error

Run implements the command

type CreateAddonOptions added in v1.0.54

type CreateAddonOptions struct {
	CreateOptions

	Namespace   string
	Version     string
	ReleaseName string
	HelmUpdate  bool
}

CreateAddonOptions the options for the create spring command

func (*CreateAddonOptions) CreateAddon added in v1.0.102

func (o *CreateAddonOptions) CreateAddon(arg string) error

func (*CreateAddonOptions) Run added in v1.0.54

func (o *CreateAddonOptions) Run() error

Run implements this command

type CreateArchetypeOptions added in v1.0.2

type CreateArchetypeOptions struct {
	CreateProjectOptions

	ArchetypeCatalogURL string

	Filter      maven.ArchetypeFilter
	PickVersion bool
	Interactive bool

	Form maven.ArchetypeForm
}

CreateArchetypeOptions the options for the create spring command

func (*CreateArchetypeOptions) Run added in v1.0.2

func (o *CreateArchetypeOptions) Run() error

Run implements the generic Create command

type CreateClusterAKSFlags added in v1.0.2

type CreateClusterAKSFlags struct {
	UserName        string
	Password        string
	ClusterName     string
	ResourceName    string
	Location        string
	NodeCount       string
	KubeVersion     string
	PathToPublicKey string
}

type CreateClusterAKSOptions added in v1.0.2

type CreateClusterAKSOptions struct {
	CreateClusterOptions

	Flags CreateClusterAKSFlags
}

CreateClusterOptions the flags for running crest cluster

func (*CreateClusterAKSOptions) Run added in v1.0.2

func (o *CreateClusterAKSOptions) Run() error

type CreateClusterFlags added in v1.0.2

type CreateClusterFlags struct {
}

type CreateClusterGKEFlags added in v1.0.2

type CreateClusterGKEFlags struct {
	AutoUpgrade     bool
	ClusterName     string
	ClusterIpv4Cidr string
	ClusterVersion  string
	DiskSize        string
	ImageType       string
	MachineType     string
	NumOfNodes      string
	ProjectId       string
	SkipLogin       bool
	Zone            string
	Namespace       string
	Labels          string
}

type CreateClusterGKEOptions added in v1.0.2

type CreateClusterGKEOptions struct {
	CreateClusterOptions

	Flags CreateClusterGKEFlags
}

CreateClusterOptions the flags for running crest cluster

func (*CreateClusterGKEOptions) Run added in v1.0.2

func (o *CreateClusterGKEOptions) Run() error

type CreateClusterMinikubeFlags added in v1.0.2

type CreateClusterMinikubeFlags struct {
	Memory              string
	CPU                 string
	Driver              string
	HyperVVirtualSwitch string
	Namespace           string
}

type CreateClusterMinikubeOptions added in v1.0.2

type CreateClusterMinikubeOptions struct {
	CreateClusterOptions

	Flags    CreateClusterMinikubeFlags
	Provider KubernetesProvider
}

CreateClusterOptions the flags for running crest cluster

func (*CreateClusterMinikubeOptions) Run added in v1.0.2

type CreateClusterOptions added in v1.0.2

type CreateClusterOptions struct {
	CreateOptions
	InstallOptions InstallOptions
	InitOptions    InitOptions
	Flags          InitFlags
	Provider       string
	NoBrew         bool
}

CreateClusterOptions the flags for running crest cluster

func (*CreateClusterOptions) Run added in v1.0.2

func (o *CreateClusterOptions) Run() error

type CreateDocsOptions added in v1.0.61

type CreateDocsOptions struct {
	CreateOptions

	Dir string
}

CreateDocsOptions the options for the create spring command

func (*CreateDocsOptions) Run added in v1.0.61

func (o *CreateDocsOptions) Run() error

Run implements the command

type CreateEnvOptions added in v1.0.2

type CreateEnvOptions struct {
	CreateOptions

	Options                v1.Environment
	HelmValuesConfig       config.HelmValuesConfig
	PromotionStrategy      string
	NoGitOps               bool
	ForkEnvironmentGitRepo string
	EnvJobCredentials      string
	GitRepositoryOptions   gits.GitRepositoryOptions
	Prefix                 string
}

CreateEnvOptions the options for the create spring command

func (*CreateEnvOptions) Run added in v1.0.2

func (o *CreateEnvOptions) Run() error

Run implements the command

type CreateEtcHostsOptions added in v1.0.55

type CreateEtcHostsOptions struct {
	CreateOptions

	Name string
	IP   string
}

CreateEtcHostsOptions the options for the create spring command

func (*CreateEtcHostsOptions) Run added in v1.0.55

func (o *CreateEtcHostsOptions) Run() error

Run implements the command

type CreateGitOptions added in v1.0.16

type CreateGitOptions struct {
	CreateOptions
}

CreateGitOptions the options for the create spring command

func (*CreateGitOptions) Run added in v1.0.16

func (o *CreateGitOptions) Run() error

Run implements this command

type CreateGitServerOptions added in v1.0.40

type CreateGitServerOptions struct {
	CreateOptions

	Name string
}

CreateGitServerOptions the options for the create spring command

func (*CreateGitServerOptions) Run added in v1.0.40

func (o *CreateGitServerOptions) Run() error

Run implements the command

type CreateGitTokenOptions added in v1.0.43

type CreateGitTokenOptions struct {
	CreateOptions

	ServerFlags ServerFlags
	Username    string
	Password    string
	ApiToken    string
	Timeout     string
}

CreateGitTokenOptions the command line options for the command

func (*CreateGitTokenOptions) Run added in v1.0.43

func (o *CreateGitTokenOptions) Run() error

Run implements the command

type CreateGitUserOptions added in v1.0.40

type CreateGitUserOptions struct {
	CreateOptions

	ServerFlags ServerFlags
	Username    string
	Password    string
	ApiToken    string
	Email       string
	IsAdmin     bool
}

CreateGitUserOptions the command line options for the command

func (*CreateGitUserOptions) Run added in v1.0.40

func (o *CreateGitUserOptions) Run() error

Run implements the command

type CreateJenkinsOptions added in v1.0.41

type CreateJenkinsOptions struct {
	CreateOptions
}

CreateJenkinsOptions the options for the create spring command

func (*CreateJenkinsOptions) Run added in v1.0.41

func (o *CreateJenkinsOptions) Run() error

Run implements this command

type CreateJenkinsUserOptions added in v1.0.41

type CreateJenkinsUserOptions struct {
	CreateOptions

	ServerFlags ServerFlags
	Username    string
	Password    string
	ApiToken    string
	Timeout     string
}

CreateJenkinsUserOptions the command line options for the command

func (*CreateJenkinsUserOptions) Run added in v1.0.41

Run implements the command

type CreateOptions added in v1.0.2

type CreateOptions struct {
	CommonOptions

	DisableImport bool
	OutDir        string
}

CreateOptions contains the command line options

func (*CreateOptions) Run added in v1.0.2

func (o *CreateOptions) Run() error

Run implements this command

type CreateProjectOptions added in v1.0.39

type CreateProjectOptions struct {
	ImportOptions

	DisableImport bool
	OutDir        string
}

CreateProjectOptions contains the command line options

func (*CreateProjectOptions) ImportCreatedProject added in v1.0.39

func (o *CreateProjectOptions) ImportCreatedProject(outDir string) error

DoImport imports the project created at the given directory

type CreateSpringOptions added in v1.0.2

type CreateSpringOptions struct {
	CreateProjectOptions

	Advanced   bool
	SpringForm spring.SpringBootForm
}

CreateSpringOptions the options for the create spring command

func (*CreateSpringOptions) Run added in v1.0.2

func (o *CreateSpringOptions) Run() error

Run implements the command

type DeleteAddonGiteaOptions added in v1.0.54

type DeleteAddonGiteaOptions struct {
	DeleteAddonOptions

	ReleaseName string
}

DeleteAddonGiteaOptions the options for the create spring command

func (*DeleteAddonGiteaOptions) Run added in v1.0.54

func (o *DeleteAddonGiteaOptions) Run() error

Run implements the command

type DeleteAddonOptions added in v1.0.54

type DeleteAddonOptions struct {
	CommonOptions

	Purge bool
}

DeleteAddonOptions are the flags for delete commands

func (*DeleteAddonOptions) Run added in v1.0.54

func (o *DeleteAddonOptions) Run() error

Run implements this command

type DeleteEnvOptions added in v1.0.6

type DeleteEnvOptions struct {
	CreateOptions

	DeleteNamespace bool
}

DeleteEnvOptions the options for the create spring command

func (*DeleteEnvOptions) Run added in v1.0.6

func (o *DeleteEnvOptions) Run() error

Run implements the command

type DeleteGitOptions added in v1.0.39

type DeleteGitOptions struct {
	CommonOptions
}

DeleteGitOptions are the flags for delete commands

func (*DeleteGitOptions) Run added in v1.0.39

func (o *DeleteGitOptions) Run() error

Run implements this command

type DeleteGitServerOptions added in v1.0.40

type DeleteGitServerOptions struct {
	CommonOptions

	IgnoreMissingServer bool
}

DeleteGitServerOptions the options for the create spring command

func (*DeleteGitServerOptions) Run added in v1.0.40

func (o *DeleteGitServerOptions) Run() error

Run implements the command

type DeleteGitTokenOptions added in v1.0.45

type DeleteGitTokenOptions struct {
	CreateOptions

	ServerFlags ServerFlags
}

DeleteGitTokenOptions the options for the create spring command

func (*DeleteGitTokenOptions) Run added in v1.0.45

func (o *DeleteGitTokenOptions) Run() error

Run implements the command

type DeleteJenkinsOptions added in v1.0.41

type DeleteJenkinsOptions struct {
	CommonOptions
}

DeleteJenkinsOptions are the flags for delete commands

func (*DeleteJenkinsOptions) Run added in v1.0.41

func (o *DeleteJenkinsOptions) Run() error

Run implements this command

type DeleteJenkinsUserOptions added in v1.0.41

type DeleteJenkinsUserOptions struct {
	CreateOptions

	ServerFlags ServerFlags
}

DeleteJenkinsUserOptions the options for the create spring command

func (*DeleteJenkinsUserOptions) Run added in v1.0.41

Run implements the command

type DeleteOptions added in v1.0.6

type DeleteOptions struct {
	CommonOptions
}

DeleteOptions are the flags for delete commands

func (*DeleteOptions) Run added in v1.0.6

func (o *DeleteOptions) Run() error

Run implements this command

type DeleteRepoOptions added in v1.0.6

type DeleteRepoOptions struct {
	CreateOptions

	Organisation string
	Repositories []string
	GitHost      string
	GitHub       bool
	SelectAll    bool
	SelectFilter string
}

DeleteRepoOptions the options for the create spring command

func (*DeleteRepoOptions) Run added in v1.0.6

func (o *DeleteRepoOptions) Run() error

Run implements the command

type EditEnvOptions added in v1.0.2

type EditEnvOptions struct {
	CreateOptions

	Options                v1.Environment
	HelmValuesConfig       config.HelmValuesConfig
	PromotionStrategy      string
	NoGitOps               bool
	ForkEnvironmentGitRepo string
	EnvJobCredentials      string
	GitRepositoryOptions   gits.GitRepositoryOptions
	Prefix                 string
}

EditEnvOptions the options for the create spring command

func (*EditEnvOptions) Run added in v1.0.2

func (o *EditEnvOptions) Run() error

Run implements the command

type EditOptions added in v1.0.2

type EditOptions struct {
	CommonOptions
}

EditOptions contains the CLI options

func (*EditOptions) Run added in v1.0.2

func (o *EditOptions) Run() error

Run implements this command

type EnvApps added in v1.0.2

type EnvApps struct {
	Environment v1.Environment
	Apps        map[string]v1beta1.Deployment
}

type EnvironmentOptions added in v1.0.2

type EnvironmentOptions struct {
	CommonOptions
}

func (*EnvironmentOptions) PickNamespace added in v1.0.2

func (o *EnvironmentOptions) PickNamespace(client *kubernetes.Clientset, defaultNamespace string) (string, error)

func (*EnvironmentOptions) Run added in v1.0.2

func (o *EnvironmentOptions) Run() error

type GetActivityOptions added in v1.0.84

type GetActivityOptions struct {
	CommonOptions

	Filter      string
	BuildNumber string
}

GetActivityOptions containers the CLI options

func (*GetActivityOptions) Run added in v1.0.84

func (o *GetActivityOptions) Run() error

Run implements this command

type GetAddonOptions added in v1.0.54

type GetAddonOptions struct {
	GetOptions
}

GetAddonOptions the command line options

func (*GetAddonOptions) Run added in v1.0.54

func (o *GetAddonOptions) Run() error

Run implements this command

type GetBuildLogsOptions added in v1.0.61

type GetBuildLogsOptions struct {
	GetOptions

	Tail   bool
	Filter string
}

GetBuildLogsOptions the command line options

func (*GetBuildLogsOptions) Run added in v1.0.61

func (o *GetBuildLogsOptions) Run() error

Run implements this command

type GetBuildOptions added in v1.0.61

type GetBuildOptions struct {
	CommonOptions

	Output string
}

GetBuildOptions the command line options

func (*GetBuildOptions) Run added in v1.0.61

func (o *GetBuildOptions) Run() error

Run implements this command

type GetEnvOptions added in v1.0.2

type GetEnvOptions struct {
	GetOptions

	PromotionStrategy string
}

GetEnvOptions containers the CLI options

func (*GetEnvOptions) Run added in v1.0.2

func (o *GetEnvOptions) Run() error

Run implements this command

type GetGitOptions added in v1.0.16

type GetGitOptions struct {
	GetOptions
}

GetGitOptions the command line options

func (*GetGitOptions) Run added in v1.0.16

func (o *GetGitOptions) Run() error

Run implements this command

type GetOptions

type GetOptions struct {
	CommonOptions

	Output string
}

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

func (*GetOptions) Run added in v1.0.2

func (o *GetOptions) Run() error

Run implements this command

type GetPipelineOptions added in v1.0.2

type GetPipelineOptions struct {
	GetOptions
}

GetPipelineOptions 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()

func (*GetPipelineOptions) Run added in v1.0.2

func (o *GetPipelineOptions) Run() error

Run implements this command

type GetURLOptions added in v1.0.2

type GetURLOptions struct {
	GetOptions
}

GetURLOptions the command line options

func (*GetURLOptions) Run added in v1.0.2

func (o *GetURLOptions) Run() error

Run implements this command

type GetVersionOptions added in v1.0.2

type GetVersionOptions struct {
	CommonOptions
}

GetVersionOptions containers the CLI options

func (*GetVersionOptions) Run added in v1.0.2

func (o *GetVersionOptions) Run() error

Run implements this command

type ImportOptions

type ImportOptions struct {
	CommonOptions

	RepoURL string

	Dir                     string
	Organisation            string
	Repository              string
	Credentials             string
	AppName                 string
	GitHub                  bool
	DryRun                  bool
	SelectAll               bool
	DisableDraft            bool
	DisableJenkinsfileCheck bool
	SelectFilter            string
	Jenkinsfile             string
	GitRepositoryOptions    gits.GitRepositoryOptions
	ImportGitCommitMessage  string

	DisableDotGitSearch bool
	Jenkins             *gojenkins.Jenkins
	GitConfDir          string
	GitProvider         gits.GitProvider
}

func (*ImportOptions) CloneRepository added in v1.0.2

func (o *ImportOptions) CloneRepository() error

func (*ImportOptions) CreateNewRemoteRepository added in v1.0.2

func (o *ImportOptions) CreateNewRemoteRepository() error

func (*ImportOptions) DefaultDockerfile added in v1.0.19

func (o *ImportOptions) DefaultDockerfile() error

func (*ImportOptions) DefaultGitIgnore added in v1.0.2

func (o *ImportOptions) DefaultGitIgnore() error

DiscoverGit checks if there is a git clone or prompts the user to import it

func (*ImportOptions) DefaultJenkinsfile added in v1.0.2

func (o *ImportOptions) DefaultJenkinsfile() error

func (*ImportOptions) DiscoverGit added in v1.0.2

func (o *ImportOptions) DiscoverGit() error

DiscoverGit checks if there is a git clone or prompts the user to import it

func (*ImportOptions) DiscoverRemoteGitURL added in v1.0.2

func (o *ImportOptions) DiscoverRemoteGitURL() error

DiscoverRemoteGitURL finds the git url by looking in the directory and looking for a .git/config file

func (*ImportOptions) DoImport added in v1.0.2

func (o *ImportOptions) DoImport() error

func (*ImportOptions) DraftCreate added in v1.0.2

func (o *ImportOptions) DraftCreate() error

func (*ImportOptions) ImportProjectsFromGitHub added in v1.0.6

func (o *ImportOptions) ImportProjectsFromGitHub() error

func (*ImportOptions) Run

func (o *ImportOptions) Run() error

type InitFlags added in v1.0.2

type InitFlags struct {
	Domain      string
	Provider    string
	DraftClient bool
	HelmClient  bool
}

type InitOptions added in v1.0.2

type InitOptions struct {
	CommonOptions
	Client clientset.Clientset
	Flags  InitFlags
}

InitOptions the flags for running init

func (*InitOptions) Run added in v1.0.2

func (o *InitOptions) Run() error

type InstallFlags

type InstallFlags struct {
	Domain                   string
	HTTPS                    bool
	Provider                 string
	CloudEnvRepository       string
	LocalHelmRepoName        string
	Namespace                string
	DefaultEnvironments      bool
	DefaultEnvironmentPrefix string
	LocalCloudEnvironment    bool
	Timeout                  string
	RegisterLocalHelmRepo    bool
	CleanupTempFiles         bool
}

type InstallOptions

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

func (*InstallOptions) Run added in v1.0.2

func (options *InstallOptions) Run() error

Run implements this command

type KubernetesProvider added in v1.0.2

type KubernetesProvider string

type LogsOptions added in v1.0.2

type LogsOptions struct {
	CommonOptions

	Container string
	Namespace string
	Filter    string
}

func (*LogsOptions) Run added in v1.0.2

func (o *LogsOptions) Run() error

type MetricsOptions added in v1.0.8

type MetricsOptions struct {
	CommonOptions

	Namespace string
	Filter    string
	Duration  string
	Selector  string
	Metric    string
}

func (*MetricsOptions) Run added in v1.0.8

func (o *MetricsOptions) Run() error

type NamespaceOptions

type NamespaceOptions struct {
	CommonOptions
}

func (*NamespaceOptions) PickNamespace

func (o *NamespaceOptions) PickNamespace(names []string, 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 PreviewOptions added in v1.0.83

type PreviewOptions struct {
	PromoteOptions

	Name           string
	Label          string
	Namespace      string
	Cluster        string
	PullRequestURL string
	PullRequest    string
	SourceURL      string
	SourceRef      string
	Dir            string
	GitConfDir     string
	GitProvider    gits.GitProvider

	HelmValuesConfig config.HelmValuesConfig
}

PreviewOptions the options for the create spring command

func (*PreviewOptions) Run added in v1.0.83

func (o *PreviewOptions) Run() error

Run implements the command

type PromoteOptions added in v1.0.2

type PromoteOptions struct {
	CommonOptions

	Namespace           string
	Environment         string
	Application         string
	Version             string
	ReleaseName         string
	LocalHelmRepoName   string
	HelmRepositoryURL   string
	NoHelmUpdate        bool
	AllAutomatic        bool
	Timeout             string
	PullRequestPollTime string

	// calculated fields
	TimeoutDuration         *time.Duration
	PullRequestPollDuration *time.Duration
	Activities              typev1.PipelineActivityInterface
	GitInfo                 *gits.GitRepositoryInfo
	// contains filtered or unexported fields
}

PromoteOptions containers the CLI options

func (*PromoteOptions) DiscoverAppName added in v1.0.83

func (o *PromoteOptions) DiscoverAppName() (string, error)

func (*PromoteOptions) GetTargetNamespace added in v1.0.2

func (o *PromoteOptions) GetTargetNamespace(ns string, env string) (string, *v1.Environment, error)

func (*PromoteOptions) Promote added in v1.0.13

func (o *PromoteOptions) Promote(targetNS string, env *v1.Environment, warnIfAuto bool) (*ReleaseInfo, error)

func (*PromoteOptions) PromoteAllAutomatic added in v1.0.13

func (o *PromoteOptions) PromoteAllAutomatic() error

func (*PromoteOptions) PromoteViaPullRequest added in v1.0.2

func (o *PromoteOptions) PromoteViaPullRequest(env *v1.Environment, releaseInfo *ReleaseInfo) error

func (*PromoteOptions) Run added in v1.0.2

func (o *PromoteOptions) Run() error

Run implements this command

func (*PromoteOptions) WaitForPromotion added in v1.0.13

func (o *PromoteOptions) WaitForPromotion(ns string, env *v1.Environment, releaseInfo *ReleaseInfo) error

type PromptOptions added in v1.0.2

type PromptOptions struct {
	CommonOptions

	NoLabel  bool
	ShowIcon bool

	Prefix    string
	Label     string
	Separator string
	Divider   string
	Suffix    string

	LabelColor     []string
	NamespaceColor []string
	ContextColor   []string
}

PromptOptions containers the CLI options

func (*PromptOptions) Run added in v1.0.2

func (o *PromptOptions) Run() error

Run implements this command

type ReleaseInfo added in v1.0.63

type ReleaseInfo struct {
	ReleaseName     string
	FullAppName     string
	Version         string
	PullRequestInfo *ReleasePullRequestInfo
}

type ReleasePullRequestInfo added in v1.0.63

type ReleasePullRequestInfo struct {
	GitProvider          gits.GitProvider
	PullRequest          *gits.GitPullRequest
	PullRequestArguments *gits.GitPullRequestArguments
}

type RshOptions added in v1.0.10

type RshOptions struct {
	CommonOptions

	Container  string
	Namespace  string
	Executable string
	// contains filtered or unexported fields
}

func (*RshOptions) Run added in v1.0.10

func (o *RshOptions) Run() error

type Secrets

type Secrets struct {
	Login string
	Token string
}

type ServerFlags added in v1.0.41

type ServerFlags struct {
	ServerName string
	ServerURL  string
}

func (*ServerFlags) IsEmpty added in v1.0.41

func (f *ServerFlags) IsEmpty() bool

type ShellOptions added in v1.0.6

type ShellOptions struct {
	CommonOptions
}

func (*ShellOptions) PickContext added in v1.0.6

func (o *ShellOptions) PickContext(names []string, defaultValue string) (string, error)

func (*ShellOptions) Run added in v1.0.6

func (o *ShellOptions) Run() error

type Start added in v1.0.10

type Start struct {
	CommonOptions
}

Start contains the command line options

func (*Start) Run added in v1.0.10

func (o *Start) Run() error

Run implements this command

type StartPipelineOptions added in v1.0.10

type StartPipelineOptions struct {
	GetOptions

	Tail   bool
	Filter string

	Jobs map[string]*gojenkins.Job
}

StartPipelineOptions contains the command line options

func (*StartPipelineOptions) Run added in v1.0.10

func (o *StartPipelineOptions) Run() error

Run implements this command

type StepChangelogOptions added in v1.0.90

type StepChangelogOptions struct {
	StepOptions

	PreviousRevision string
	CurrentRevision  string
	TemplatesDir     string
	ReleaseYamlFile  string
	CrdYamlFile      string
	Dir              string
	Version          string
	OverwriteCRD     bool
	GenerateCRD      bool
	UpdateRelease    bool
	State            StepChangelogState
}

StepChangelogOptions contains the command line flags

func (*StepChangelogOptions) Run added in v1.0.90

func (o *StepChangelogOptions) Run() error

type StepChangelogState added in v1.0.97

type StepChangelogState struct {
	GitInfo         *gits.GitRepositoryInfo
	GitProvider     gits.GitProvider
	FoundIssueNames map[string]bool
}

type StepNexusDropOptions added in v1.0.26

type StepNexusDropOptions struct {
	StepNexusOptions
}

StepNexusDropOptions contains the command line flags

func (*StepNexusDropOptions) Run added in v1.0.26

func (o *StepNexusDropOptions) Run() error

type StepNexusOptions added in v1.0.26

type StepNexusOptions struct {
	StepOptions
}

StepNexusOptions contains the command line flags

func (*StepNexusOptions) Run added in v1.0.26

func (o *StepNexusOptions) Run() error

Run implements this command

type StepNexusReleaseOptions added in v1.0.26

type StepNexusReleaseOptions struct {
	StepNexusOptions

	DropOnFailure bool
}

StepNexusReleaseOptions contains the command line flags

func (*StepNexusReleaseOptions) Run added in v1.0.26

func (o *StepNexusReleaseOptions) Run() error

type StepOptions added in v1.0.19

type StepOptions struct {
	CommonOptions

	DisableImport bool
	OutDir        string
}

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

func (*StepOptions) Run added in v1.0.19

func (o *StepOptions) Run() error

Run implements this command

type StepPRCommentFlags added in v1.0.91

type StepPRCommentFlags struct {
	Comment    string
	URL        string
	Owner      string
	Repository string
	PR         string
}

type StepPRCommentOptions added in v1.0.91

type StepPRCommentOptions struct {
	StepPROptions
	Flags StepPRCommentFlags
}

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

func (*StepPRCommentOptions) Run added in v1.0.91

func (o *StepPRCommentOptions) Run() error

Run implements this command

type StepPROptions added in v1.0.91

type StepPROptions struct {
	StepOptions
}

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

func (*StepPROptions) Run added in v1.0.91

func (o *StepPROptions) Run() error

Run implements this command

type StepTagFlags added in v1.0.19

type StepTagFlags struct {
	Version string
}

type StepTagOptions added in v1.0.19

type StepTagOptions struct {
	StepOptions

	Flags StepTagFlags
}

CreateClusterOptions the flags for running crest cluster

func (*StepTagOptions) Run added in v1.0.19

func (o *StepTagOptions) Run() error

type UninstallOptions added in v1.0.2

type UninstallOptions struct {
	CommonOptions
}

func (*UninstallOptions) Run added in v1.0.2

func (o *UninstallOptions) Run() error

type UpgradeOptions added in v1.0.51

type UpgradeOptions struct {
	CommonOptions
}

UpgradeOptions are the flags for delete commands

func (*UpgradeOptions) Run added in v1.0.51

func (o *UpgradeOptions) Run() error

Run implements this command

type UpgradePlatformOptions added in v1.0.51

type UpgradePlatformOptions struct {
	CreateOptions

	Version     string
	ReleaseName string
	Chart       string
	Namespace   string
}

UpgradePlatformOptions the options for the create spring command

func (*UpgradePlatformOptions) Run added in v1.0.51

func (o *UpgradePlatformOptions) Run() error

Run implements the command

type VersionOptions added in v1.0.6

type VersionOptions struct {
	CommonOptions

	Container string
	Namespace string
}

func (*VersionOptions) Run added in v1.0.6

func (o *VersionOptions) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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