commands

package
v0.1.63 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 85 Imported by: 0

Documentation

Index

Constants

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

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"
)
View Source
var (
	EventSourceGVR = aev1alpha1.SchemaGroupVersionKind.GroupVersion().WithResource("eventsources")
	SensorGVR      = aev1alpha1.SchemaGroupVersionKind.GroupVersion().WithResource("sensors")
)
View Source
var (
	ErrRuntimeTokenNotFound = errors.New("runtime token not found")
)

Functions

func CreateInternalRouterIngress added in v0.0.542

func CreateInternalRouterIngress(ctx context.Context, opts *CreateIngressOptions, rt *runtime.Runtime, onlyWebhooks bool) error

func IsValidName added in v0.0.156

func IsValidName(s string) (bool, error)

func NewClusterCommand added in v0.0.283

func NewClusterCommand() *cobra.Command

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 NewGitAuthCommand added in v0.0.293

func NewGitAuthCommand() *cobra.Command

func NewGitIntegrationAddCommand added in v0.0.143

func NewGitIntegrationAddCommand(apClient *ap.AppProxyAPI) *cobra.Command

func NewGitIntegrationCommand added in v0.0.143

func NewGitIntegrationCommand(apClient *ap.AppProxyAPI) *cobra.Command

func NewGitIntegrationDeregisterCommand added in v0.0.143

func NewGitIntegrationDeregisterCommand(apClient *ap.AppProxyAPI) *cobra.Command

func NewGitIntegrationEditCommand added in v0.0.143

func NewGitIntegrationEditCommand(apClient *ap.AppProxyAPI) *cobra.Command

func NewGitIntegrationGetCommand added in v0.0.143

func NewGitIntegrationGetCommand(apClient *ap.AppProxyAPI) *cobra.Command

func NewGitIntegrationListCommand added in v0.0.143

func NewGitIntegrationListCommand(apClient *ap.AppProxyAPI) *cobra.Command

func NewGitIntegrationRegisterCommand added in v0.0.143

func NewGitIntegrationRegisterCommand(apClient *ap.AppProxyAPI) *cobra.Command

func NewGitIntegrationRemoveCommand added in v0.0.143

func NewGitIntegrationRemoveCommand(apClient *ap.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 NewHelmCommand added in v0.1.43

func NewHelmCommand() *cobra.Command

func NewHelmValidateValuesCommand added in v0.1.43

func NewHelmValidateValuesCommand() *cobra.Command

func NewIntegrationCommand added in v0.0.143

func NewIntegrationCommand() *cobra.Command

func NewMigrateCommand added in v0.1.52

func NewMigrateCommand() *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 NewRuntimeLogsCommand added in v0.0.386

func NewRuntimeLogsCommand() *cobra.Command

func NewRuntimeUninstallCommand added in v0.0.86

func NewRuntimeUninstallCommand() *cobra.Command

func NewRuntimeUpgradeCommand

func NewRuntimeUpgradeCommand() *cobra.Command

func NewUpgradeCommand added in v0.1.12

func NewUpgradeCommand() *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 PreRunE added in v0.1.61

func PreRunE(cmd *cobra.Command, args []string, installationOpts *RuntimeInstallOptions, accessMode string) error

func RunComponentList added in v0.0.68

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

func RunGitAuthCommand added in v0.0.293

func RunGitAuthCommand(ctx context.Context, cmd *cobra.Command) error

func RunGitIntegrationAddCommand added in v0.0.143

func RunGitIntegrationAddCommand(ctx context.Context, apClient ap.AppProxyAPI, opts *apmodel.AddGitIntegrationArgs) error

func RunGitIntegrationDeregisterCommand added in v0.0.143

func RunGitIntegrationDeregisterCommand(ctx context.Context, apClient ap.AppProxyAPI, name *string) error

func RunGitIntegrationEditCommand added in v0.0.143

func RunGitIntegrationEditCommand(ctx context.Context, apClient ap.AppProxyAPI, opts *apmodel.EditGitIntegrationArgs) error

func RunGitIntegrationGetCommand added in v0.0.143

func RunGitIntegrationGetCommand(ctx context.Context, apClient ap.AppProxyAPI, name *string, format string) error

func RunGitIntegrationListCommand added in v0.0.143

func RunGitIntegrationListCommand(ctx context.Context, apClient ap.AppProxyAPI, format string) error

func RunGitIntegrationRegisterCommand added in v0.0.143

func RunGitIntegrationRegisterCommand(ctx context.Context, apClient ap.AppProxyAPI, opts *GitIntegrationRegistrationOpts) error

func RunGitIntegrationRemoveCommand added in v0.0.143

func RunGitIntegrationRemoveCommand(ctx context.Context, apClient ap.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 platmodel.PipelinesFilterArgs) error

func RunRuntimeInstall

func RunRuntimeInstall(cmd *cobra.Command, opts *RuntimeInstallOptions) 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 platmodel.WorkflowsFilterArgs) error

Types

type Callback added in v0.0.364

type Callback func() error

type ClusterAddOptions added in v0.0.283

type ClusterAddOptions struct {
	// contains filtered or unexported fields
}

type ClusterCreateArgoRolloutsOptions added in v0.0.321

type ClusterCreateArgoRolloutsOptions struct {
	// contains filtered or unexported fields
}

type ClusterRemoveOptions added in v0.0.298

type ClusterRemoveOptions struct {
	// contains filtered or unexported fields
}

type CreateIngressOptions added in v0.0.542

type CreateIngressOptions struct {
	HostName                  string
	InternalHostName          string
	IngressHost               string
	IngressClass              string
	InternalIngressHost       string
	IngressController         routingutil.RoutingController
	GatewayName               string
	GatewayNamespace          string
	InsCloneOpts              *apgit.CloneOptions
	InternalIngressAnnotation map[string]string
	ExternalIngressAnnotation map[string]string
	// contains filtered or unexported fields
}

type GitIntegrationAddOptions added in v0.0.143

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

type GitIntegrationRegistrationOpts added in v0.0.500

type GitIntegrationRegistrationOpts struct {
	Name     string
	Token    string
	Username string
}

type GitSourceCreateOptions

type GitSourceCreateOptions struct {
	InsCloneOpts        *apgit.CloneOptions
	GsCloneOpts         *apgit.CloneOptions
	GsName              string
	RuntimeName         string
	RuntimeNamespace    string
	CreateDemoResources bool
	Exclude             string
	Include             string
	HostName            string
	SkipIngress         bool
	IngressHost         string
	IngressClass        string
	IngressController   routingutil.RoutingController
	AccessMode          platmodel.AccessMode
	GatewayName         string
	GatewayNamespace    string
	GitProvider         cfgit.Provider
	// contains filtered or unexported fields
}

type GitSourceDeleteOptions

type GitSourceDeleteOptions struct {
	RuntimeName string
	GsName      string
	Timeout     time.Duration
}

type GitSourceEditOptions added in v0.0.67

type GitSourceEditOptions struct {
	RuntimeName string
	GsName      string
	GsCloneOpts *apgit.CloneOptions
	Include     *string
	Exclude     *string
}

type HelmValidateValuesOptions added in v0.1.43

type HelmValidateValuesOptions struct {
	// contains filtered or unexported fields
}

type MigrateOptions added in v0.1.52

type MigrateOptions struct {
	// contains filtered or unexported fields
}

type RuntimeInstallOptions

type RuntimeInstallOptions struct {
	RuntimeName                    string
	RuntimeNamespace               string
	RuntimeToken                   string
	RuntimeStoreIV                 string
	HostName                       string
	InternalHostName               string
	IngressHost                    string
	IngressClass                   string
	InternalIngressHost            string
	IngressController              routingutil.RoutingController
	GatewayName                    string
	GatewayNamespace               string
	Insecure                       bool
	InstallDemoResources           bool
	SkipClusterChecks              bool
	DisableRollback                bool
	DisableTelemetry               bool
	FromRepo                       bool
	GsCloneOpts                    *apgit.CloneOptions
	InsCloneOpts                   *apgit.CloneOptions
	GitIntegrationCreationOpts     *apmodel.AddGitIntegrationArgs
	GitIntegrationRegistrationOpts *GitIntegrationRegistrationOpts
	KubeFactory                    apkube.Factory
	CommonConfig                   *runtime.CommonConfig
	NamespaceLabels                map[string]string
	SuggestedSharedConfigRepo      string
	InternalIngressAnnotation      map[string]string
	ExternalIngressAnnotation      map[string]string
	AccessMode                     platmodel.AccessMode
	TunnelRegisterHost             string
	TunnelDomain                   string
	TunnelSubdomain                string
	IpsAllowList                   string
	SkipIngress                    bool
	BypassIngressClassCheck        bool

	SkipPermissionsValidation bool
	// contains filtered or unexported fields
}

func (*RuntimeInstallOptions) GetValues added in v0.0.518

func (opts *RuntimeInstallOptions) GetValues(name string) (string, error)

func (*RuntimeInstallOptions) IsCustomInstall added in v0.0.540

func (opts *RuntimeInstallOptions) IsCustomInstall() bool

type RuntimeUninstallOptions

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

type RuntimeUpgradeOptions

type RuntimeUpgradeOptions struct {
	RuntimeName               string
	RuntimeNamespace          string
	CloneOpts                 *apgit.CloneOptions
	CommonConfig              *runtime.CommonConfig
	SuggestedSharedConfigRepo string
	DisableTelemetry          bool
	SkipIngress               bool
	// contains filtered or unexported fields
}

type SelectItem added in v0.0.290

type SelectItem struct {
	Value string
	Label string
}

Jump to

Keyboard shortcuts

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