commands

package
v0.0.269 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 74 Imported by: 0

Documentation

Overview

Copyright 2022 The Codefresh Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2022 The Codefresh Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	Success summaryLogLevels = "Success"
	Failed  summaryLogLevels = "Failed"
	Info    summaryLogLevels = "Info"

	IngressControllerNginxCommunity  ingressControllerType = "k8s.io/ingress-nginx"
	IngressControllerNginxEnterprise ingressControllerType = "nginx.org/ingress-controller"
	IngressControllerIstio           ingressControllerType = "istio.io/ingress-controller"
	IngressControllerTraefik         ingressControllerType = "traefik.io/ingress-controller"
	IngressControllerAmbassador      ingressControllerType = "getambassador.io/ingress-controller"
)

Variables

View Source
var (
	GREEN           = "\033[32m"
	RED             = "\033[31m"
	CYAN            = "\033[36m"
	BOLD            = "\033[1m"
	UNDERLINE       = "\033[4m"
	COLOR_RESET     = "\033[0m"
	UNDERLINE_RESET = "\033[24m"
	BOLD_RESET      = "\033[22m"
)

Functions

func IsValidName added in v0.0.156

func IsValidName(s string) (bool, error)

func NewCompletionCommand added in v0.0.254

func NewCompletionCommand() *cobra.Command

func NewComponentCommand added in v0.0.68

func NewComponentCommand() *cobra.Command

func NewComponentListCommand added in v0.0.68

func NewComponentListCommand() *cobra.Command

func NewConfigCommand

func NewConfigCommand() *cobra.Command

func NewConfigCreateContextCommand

func NewConfigCreateContextCommand() *cobra.Command

func NewConfigCurrentContextCommand

func NewConfigCurrentContextCommand() *cobra.Command

func NewConfigDeleteContextCommand

func NewConfigDeleteContextCommand() *cobra.Command

func NewConfigGetContextsCommand

func NewConfigGetContextsCommand() *cobra.Command

func NewConfigGetRuntimeCommand added in v0.0.143

func NewConfigGetRuntimeCommand() *cobra.Command

func NewConfigSetRuntimeCommand added in v0.0.143

func NewConfigSetRuntimeCommand() *cobra.Command

func NewConfigUseContextCommand

func NewConfigUseContextCommand() *cobra.Command

func NewGitIntegrationAddCommand added in v0.0.143

func NewGitIntegrationAddCommand(client *sdk.AppProxyAPI) *cobra.Command

func NewGitIntegrationCommand added in v0.0.143

func NewGitIntegrationCommand(client *sdk.AppProxyAPI) *cobra.Command

func NewGitIntegrationDeregisterCommand added in v0.0.143

func NewGitIntegrationDeregisterCommand(client *sdk.AppProxyAPI) *cobra.Command

func NewGitIntegrationEditCommand added in v0.0.143

func NewGitIntegrationEditCommand(client *sdk.AppProxyAPI) *cobra.Command

func NewGitIntegrationGetCommand added in v0.0.143

func NewGitIntegrationGetCommand(client *sdk.AppProxyAPI) *cobra.Command

func NewGitIntegrationListCommand added in v0.0.143

func NewGitIntegrationListCommand(client *sdk.AppProxyAPI) *cobra.Command

func NewGitIntegrationRegisterCommand added in v0.0.143

func NewGitIntegrationRegisterCommand(client *sdk.AppProxyAPI) *cobra.Command

func NewGitIntegrationRemoveCommand added in v0.0.143

func NewGitIntegrationRemoveCommand(client *sdk.AppProxyAPI) *cobra.Command

func NewGitSourceCommand

func NewGitSourceCommand() *cobra.Command

func NewGitSourceCreateCommand

func NewGitSourceCreateCommand() *cobra.Command

func NewGitSourceDeleteCommand

func NewGitSourceDeleteCommand() *cobra.Command

func NewGitSourceEditCommand added in v0.0.67

func NewGitSourceEditCommand() *cobra.Command

func NewGitSourceListCommand added in v0.0.66

func NewGitSourceListCommand() *cobra.Command

func NewIntegrationCommand added in v0.0.143

func NewIntegrationCommand() *cobra.Command

func NewPipelineCommand added in v0.0.83

func NewPipelineCommand() *cobra.Command

func NewPipelineGetCommand added in v0.0.83

func NewPipelineGetCommand() *cobra.Command

func NewPipelineListCommand added in v0.0.83

func NewPipelineListCommand() *cobra.Command

func NewRoot

func NewRoot() *cobra.Command

func NewRuntimeCommand

func NewRuntimeCommand() *cobra.Command

func NewRuntimeInstallCommand

func NewRuntimeInstallCommand() *cobra.Command

func NewRuntimeListCommand

func NewRuntimeListCommand() *cobra.Command

func NewRuntimeUninstallCommand added in v0.0.86

func NewRuntimeUninstallCommand() *cobra.Command

func NewRuntimeUpgradeCommand

func NewRuntimeUpgradeCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

func NewWorkflowCommand added in v0.0.83

func NewWorkflowCommand() *cobra.Command

func NewWorkflowGetCommand added in v0.0.83

func NewWorkflowGetCommand() *cobra.Command

func NewWorkflowListCommand added in v0.0.83

func NewWorkflowListCommand() *cobra.Command

func RunComponentList added in v0.0.68

func RunComponentList(ctx context.Context, runtimeName string) error

func RunConfigCreateContext

func RunConfigCreateContext(ctx context.Context, context, apiKey, url string) error

func RunConfigCurrentContext

func RunConfigCurrentContext(ctx context.Context) error

func RunConfigDeleteContext

func RunConfigDeleteContext(ctx context.Context, context string) error

func RunConfigGetContexts

func RunConfigGetContexts(ctx context.Context) error

func RunConfigGetRuntime added in v0.0.143

func RunConfigGetRuntime(ctx context.Context) error

func RunConfigSetRuntime added in v0.0.143

func RunConfigSetRuntime(ctx context.Context, runtime string) error

func RunConfigUseContext

func RunConfigUseContext(ctx context.Context, context string) error

func RunGitIntegrationAddCommand added in v0.0.143

func RunGitIntegrationAddCommand(ctx context.Context, client sdk.AppProxyAPI, opts *model.AddGitIntegrationArgs) error

func RunGitIntegrationDeregisterCommand added in v0.0.143

func RunGitIntegrationDeregisterCommand(ctx context.Context, client sdk.AppProxyAPI, name *string) error

func RunGitIntegrationEditCommand added in v0.0.143

func RunGitIntegrationEditCommand(ctx context.Context, client sdk.AppProxyAPI, opts *model.EditGitIntegrationArgs) error

func RunGitIntegrationGetCommand added in v0.0.143

func RunGitIntegrationGetCommand(ctx context.Context, client sdk.AppProxyAPI, name *string, format string) error

func RunGitIntegrationListCommand added in v0.0.143

func RunGitIntegrationListCommand(ctx context.Context, client sdk.AppProxyAPI, format string) error

func RunGitIntegrationRegisterCommand added in v0.0.143

func RunGitIntegrationRegisterCommand(ctx context.Context, client sdk.AppProxyAPI, opts *model.RegisterToGitIntegrationArgs) error

func RunGitIntegrationRemoveCommand added in v0.0.143

func RunGitIntegrationRemoveCommand(ctx context.Context, client sdk.AppProxyAPI, name string) error

func RunGitSourceCreate added in v0.0.68

func RunGitSourceCreate(ctx context.Context, opts *GitSourceCreateOptions) error

func RunGitSourceDelete added in v0.0.68

func RunGitSourceDelete(ctx context.Context, opts *GitSourceDeleteOptions) error

func RunGitSourceEdit added in v0.0.68

func RunGitSourceEdit(ctx context.Context, opts *GitSourceEditOptions) error

func RunGitSourceList added in v0.0.66

func RunGitSourceList(ctx context.Context, runtimeName string, includeInternal bool) error

func RunPipelineGet added in v0.0.83

func RunPipelineGet(ctx context.Context, name, namespace, runtime string) error

func RunPipelineList added in v0.0.83

func RunPipelineList(ctx context.Context, filterArgs model.PipelinesFilterArgs) error

func RunRuntimeInstall

func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error

func RunRuntimeList

func RunRuntimeList(ctx context.Context) error

func RunRuntimeUninstall

func RunRuntimeUninstall(ctx context.Context, opts *RuntimeUninstallOptions) error

func RunRuntimeUpgrade

func RunRuntimeUpgrade(ctx context.Context, opts *RuntimeUpgradeOptions) error

func RunWorkflowGet added in v0.0.83

func RunWorkflowGet(ctx context.Context, uid string) error

func RunWorkflowList added in v0.0.83

func RunWorkflowList(ctx context.Context, filterArgs model.WorkflowsFilterArgs) error

Types

type GitIntegrationAddOptions added in v0.0.143

type GitIntegrationAddOptions struct {
	Name          string
	Provider      model.GitProviders
	SharingPolicy model.SharingPolicy
}

type GitSourceCreateOptions

type GitSourceCreateOptions struct {
	InsCloneOpts          *git.CloneOptions
	GsCloneOpts           *git.CloneOptions
	GsName                string
	RuntimeName           string
	CreateDemoResources   bool
	Exclude               string
	Include               string
	HostName              string
	IngressHost           string
	IngressClass          string
	IngressControllerType ingressControllerType
}

type GitSourceDeleteOptions

type GitSourceDeleteOptions struct {
	RuntimeName  string
	GsName       string
	InsCloneOpts *git.CloneOptions
	Timeout      time.Duration
}

type GitSourceEditOptions added in v0.0.67

type GitSourceEditOptions struct {
	RuntimeName  string
	GsName       string
	InsCloneOpts *git.CloneOptions
	GsCloneOpts  *git.CloneOptions
}

type RuntimeInstallOptions

type RuntimeInstallOptions struct {
	RuntimeName                    string
	RuntimeToken                   string
	RuntimeStoreIV                 string
	HostName                       string
	IngressHost                    string
	IngressClass                   string
	IngressController              string
	IngressControllerType          ingressControllerType
	Insecure                       bool
	InstallDemoResources           bool
	SkipClusterChecks              bool
	DisableRollback                bool
	Version                        *semver.Version
	GsCloneOpts                    *git.CloneOptions
	InsCloneOpts                   *git.CloneOptions
	GitIntegrationCreationOpts     *apmodel.AddGitIntegrationArgs
	GitIntegrationRegistrationOpts *apmodel.RegisterToGitIntegrationArgs
	KubeFactory                    kube.Factory
	CommonConfig                   *runtime.CommonConfig
	// contains filtered or unexported fields
}

type RuntimeUninstallOptions

type RuntimeUninstallOptions struct {
	RuntimeName string
	Timeout     time.Duration
	CloneOpts   *git.CloneOptions
	KubeFactory kube.Factory
	SkipChecks  bool
	Force       bool
	FastExit    bool
	// contains filtered or unexported fields
}

type RuntimeUpgradeOptions

type RuntimeUpgradeOptions struct {
	RuntimeName  string
	Version      *semver.Version
	CloneOpts    *git.CloneOptions
	CommonConfig *runtime.CommonConfig
}

Jump to

Keyboard shortcuts

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