Documentation ¶
Index ¶
- Constants
- Variables
- func GetNamespaceNames(client *kubernetes.Clientset) ([]string, error)
- func IsPipeline(j *gojenkins.Job) bool
- func NewCmdCompletion(f cmdutil.Factory, out io.Writer) *cobra.Command
- func NewCmdConsole(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdContext(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreate(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateArchetype(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateCluster(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateClusterAKS(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateClusterGKE(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateClusterMinikube(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateEnv(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateGit(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateSpring(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDelete(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDeleteEnv(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDeleteRepo(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdEdit(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdEditEnv(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdEnvironment(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 NewCmdGetEnv(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetGit(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetPipeline(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetURL(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetVersion(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 NewCmdInit(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 NewCmdLogs(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdMetrics(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 NewCmdPromote(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPrompt(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdRsh(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdShell(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdStart(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdStartPipeline(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdStep(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdStepNexus(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdStepNexusDrop(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdStepNexusRelease(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdStepTag(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUninstall(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdVersion(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewJXCommand(f cmdutil.Factory, in io.Reader, out, err io.Writer) *cobra.Command
- type CommonOptions
- func (c *CommonOptions) CreateTable() table.Table
- func (o *CommonOptions) GetCloudProvider(p string) (string, error)
- func (o *CommonOptions) GetDomain(client *kubernetes.Clientset, domain string, provider string) (string, error)
- func (o *CommonOptions) JXClient() (*versioned.Clientset, string, error)
- func (o *CommonOptions) JenkinsClient() (*gojenkins.Jenkins, error)
- func (o *CommonOptions) KubeClient() (*kubernetes.Clientset, string, error)
- func (c *CommonOptions) Printf(format string, a ...interface{}) (n int, err error)
- func (o *CommonOptions) Run() error
- func (o *CommonOptions) TeamAndEnvironmentNames() (string, string, error)
- type ConsoleOptions
- type ContextOptions
- type CreateArchetypeOptions
- type CreateClusterAKSFlags
- type CreateClusterAKSOptions
- type CreateClusterFlags
- type CreateClusterGKEFlags
- type CreateClusterGKEOptions
- type CreateClusterMinikubeFlags
- type CreateClusterMinikubeOptions
- type CreateClusterOptions
- type CreateEnvOptions
- type CreateGitOptions
- type CreateOptions
- type CreateSpringOptions
- type DeleteEnvOptions
- type DeleteOptions
- type DeleteRepoOptions
- type EditEnvOptions
- type EditOptions
- type EnvApps
- type EnvironmentOptions
- type GetEnvOptions
- type GetGitOptions
- type GetOptions
- type GetPipelineOptions
- type GetURLOptions
- type GetVersionOptions
- type ImportOptions
- func (o *ImportOptions) CloneRepository() error
- func (o *ImportOptions) CreateNewRemoteRepository() error
- func (o *ImportOptions) DefaultDockerfile() error
- func (o *ImportOptions) DefaultGitIgnore() error
- func (o *ImportOptions) DefaultJenkinsfile() error
- func (o *ImportOptions) DiscoverGit() error
- func (o *ImportOptions) DiscoverRemoteGitURL() error
- func (o *ImportOptions) DoImport() error
- func (o *ImportOptions) DraftCreate() error
- func (o *ImportOptions) ImportProjectsFromGitHub() error
- func (o *ImportOptions) Run() error
- type InitFlags
- type InitOptions
- type InstallOptions
- type KubernetesProvider
- type LogsOptions
- type MetricsOptions
- type NamespaceOptions
- type OpenOptions
- type PromoteOptions
- func (o *PromoteOptions) GetTargetNamespace(ns string, env string) (string, *v1.Environment, error)
- func (o *PromoteOptions) Promote(targetNS string, env *v1.Environment, warnIfAuto bool) error
- func (o *PromoteOptions) PromoteAllAutomatic() error
- func (o *PromoteOptions) PromoteViaPullRequest(env *v1.Environment) error
- func (o *PromoteOptions) Run() error
- func (options *PromoteOptions) WaitForPromotion(ns string, env *v1.Environment) error
- type PromptOptions
- type RshOptions
- type Secrets
- type ShellOptions
- type Start
- type StartPipelineOptions
- type StepNexusDropOptions
- type StepNexusOptions
- type StepNexusReleaseOptions
- type StepOptions
- type StepTagFlags
- type StepTagOptions
- type UninstallOptions
- type VersionOptions
Constants ¶
const ( GKE = "gke" EKS = "eks" AKS = "aks" MINIKUBE = "minikube" JX_INFRA = "jx-infra" )
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" ExtraValuesFile = "extraValues.yaml" )
const CLUSTER_LIST_HEADER = "PROJECT_ID"
const (
DefaultShell = "/bin/sh"
)
const (
DefaultWritePermissions = 0760
)
const (
INGRESS_SERVICE_NAME = "jxing-nginx-ingress-controller"
)
const (
VERSION = "version"
)
Variables ¶
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 `) )
var ( StepNexusDropLong = templates.LongDesc(` This pipeline step command drops a Staging Nexus Repository `) StepNexusDropExample = templates.Examples(` jx step nexus drop `) )
var ( StepNexusReleaseLong = templates.LongDesc(` This pipeline step command releases a Nexus staging repository `) StepNexusReleaseExample = templates.Examples(` jx step nexus release `) )
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 NewCmdCompletion ¶ added in v1.0.2
func NewCmdConsole ¶
func NewCmdContext ¶ added in v1.0.6
func NewCmdCreate ¶ added in v1.0.2
NewCmdCreate creates a command object for the "create" command
func NewCmdCreateArchetype ¶ added in v1.0.2
NewCmdCreateArchetype creates a command object for the "create" command
func NewCmdCreateCluster ¶ added in v1.0.2
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
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
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
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 NewCmdCreateEnv ¶ added in v1.0.2
NewCmdCreateEnv creates a command object for the "create" command
func NewCmdCreateGit ¶ added in v1.0.16
NewCmdCreateGit creates a command object for the "create" command
func NewCmdCreateSpring ¶ added in v1.0.2
NewCmdCreateSpring creates a command object for the "create" command
func NewCmdDelete ¶ added in v1.0.6
NewCmdDelete creates a command object for the generic "get" action, which retrieves one or more resources from a server.
func NewCmdDeleteEnv ¶ added in v1.0.6
NewCmdDeleteEnv creates a command object for the "delete repo" command
func NewCmdDeleteRepo ¶ added in v1.0.6
NewCmdDeleteRepo creates a command object for the "delete repo" command
func NewCmdEdit ¶ added in v1.0.2
NewCmdEdit creates the edit command
func NewCmdEditEnv ¶ added in v1.0.2
NewCmdEditEnv creates a command object for the "create" command
func NewCmdEnvironment ¶ added in v1.0.2
func NewCmdGet ¶
NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.
func NewCmdGetEnv ¶ added in v1.0.2
NewCmdGetEnv creates the new command for: jx get env
func NewCmdGetGit ¶ added in v1.0.16
NewCmdGetGit creates the command
func NewCmdGetPipeline ¶ added in v1.0.2
NewCmdGetPipeline creates the command
func NewCmdGetURL ¶ added in v1.0.2
NewCmdGetURL creates the command
func NewCmdGetVersion ¶ added in v1.0.2
NewCmdGetVersion creates the new command for: jx get version
func NewCmdImport ¶
func NewCmdInit ¶ added in v1.0.2
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 ¶
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 NewCmdMetrics ¶ added in v1.0.8
func NewCmdNamespace ¶
func NewCmdOpen ¶
func NewCmdPromote ¶ added in v1.0.2
NewCmdPromote creates the new command for: jx get prompt
func NewCmdPrompt ¶ added in v1.0.2
NewCmdPrompt creates the new command for: jx get prompt
func NewCmdShell ¶ added in v1.0.6
func NewCmdStart ¶ added in v1.0.10
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
NewCmdStartPipeline creates the command
func NewCmdStep ¶ added in v1.0.19
NewCmdStep Steps a command object for the "step" command
func NewCmdStepNexus ¶ added in v1.0.26
NewCmdStepNexus Steps a command object for the "step" command
func NewCmdStepNexusDrop ¶ added in v1.0.26
func NewCmdStepNexusRelease ¶ added in v1.0.26
func NewCmdStepTag ¶ added in v1.0.19
func NewCmdUninstall ¶ added in v1.0.2
func NewCmdVersion ¶
Types ¶
type CommonOptions ¶
type CommonOptions struct { Factory cmdutil.Factory Out io.Writer Err io.Writer Cmd *cobra.Command Args []string BatchMode bool // contains filtered or unexported fields }
CommonOptions contains common options and helper methods
func (*CommonOptions) CreateTable ¶
func (c *CommonOptions) CreateTable() table.Table
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) 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 CreateArchetypeOptions ¶ added in v1.0.2
type CreateArchetypeOptions struct { CreateOptions 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 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 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 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
func (o *CreateClusterMinikubeOptions) Run() error
type CreateClusterOptions ¶ added in v1.0.2
type CreateClusterOptions struct { CreateOptions 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 CreateEnvOptions ¶ added in v1.0.2
type CreateEnvOptions struct { CreateOptions Options v1.Environment PromotionStrategy string NoGitOps bool ForkEnvironmentGitRepo string EnvJobCredentials string GitRepositoryOptions gits.GitRepositoryOptions }
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 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 the command
type CreateOptions ¶ added in v1.0.2
type CreateOptions 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 (*CreateOptions) DoImport ¶ added in v1.0.2
func (o *CreateOptions) DoImport(outDir string) error
DoImport imports the project created at the given directory
func (*CreateOptions) Run ¶ added in v1.0.2
func (o *CreateOptions) Run() error
Run implements this command
type CreateSpringOptions ¶ added in v1.0.2
type CreateSpringOptions struct { CreateOptions 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 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 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 Repository 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 PromotionStrategy string NoGitOps bool ForkEnvironmentGitRepo string EnvJobCredentials string GitRepositoryOptions gits.GitRepositoryOptions }
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]v1beta2.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 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 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 InstallOptions ¶
type InstallOptions struct { CommonOptions Domain string HTTPS bool GitProvider string GitToken string GitUser string GitPass string Provider string CloudEnvRepository string LocalHelmRepoName 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 (*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 PromoteOptions ¶ added in v1.0.2
type PromoteOptions struct { CommonOptions Namespace string Environment string Application string Version string LocalHelmRepoName string HelmRepositoryURL string Preview bool NoHelmUpdate bool AllAutomatic bool }
PromoteOptions containers the CLI options
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) 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) 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 (options *PromoteOptions) WaitForPromotion(ns string, env *v1.Environment) 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 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 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
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 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) DoImport ¶ added in v1.0.26
func (o *StepNexusOptions) DoImport(outDir string) error
DoImport imports the project Stepd at the given directory
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) DoImport ¶ added in v1.0.19
func (o *StepOptions) DoImport(outDir string) error
DoImport imports the project Stepd at the given directory
func (*StepOptions) Run ¶ added in v1.0.19
func (o *StepOptions) 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 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
Source Files ¶
- cmd.go
- common.go
- completion.go
- console.go
- context.go
- create.go
- create_archetype.go
- create_cluster.go
- create_cluster_aks.go
- create_cluster_gke.go
- create_cluster_minikube.go
- create_env.go
- create_git.go
- create_spring.go
- delete.go
- delete_env.go
- delete_repo.go
- edit.go
- edit_env.go
- environment.go
- get.go
- get_env.go
- get_git.go
- get_pipeline.go
- get_url.go
- get_version.go
- import.go
- init.go
- install.go
- logs.go
- metrics.go
- namespace.go
- open.go
- promote.go
- prompt.go
- rsh.go
- shell.go
- start.go
- start_pipeline.go
- step.go
- step_nexus.go
- step_nexus_drop.go
- step_nexus_release.go
- step_tag.go
- uninstall.go
- version.go