commands

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	RED             = "\033[31m"
	GREEN           = "\033[32m"
	YELLOW          = "\033[33m"
	CYAN            = "\033[36m"
	BOLD            = "\033[1m"
	UNDERLINE       = "\033[4m"
	COLOR_RESET     = "\033[0m"
	UNDERLINE_RESET = "\033[24m"
	BOLD_RESET      = "\033[22m"
)
View Source
var (
	ErrRuntimeTokenNotFound = errors.New("runtime token not found")
)

Functions

func IsValidName added in v0.0.156

func IsValidName(s string) (bool, error)

func NewAccountCommand added in v0.2.7

func NewAccountCommand() *cobra.Command

func NewCompletionCommand added in v0.0.254

func NewCompletionCommand() *cobra.Command

func NewProductReleaseCommand added in v0.1.65

func NewProductReleaseCommand() *cobra.Command

func NewRoot

func NewRoot() *cobra.Command

func NewRuntimeInstallCommand

func NewRuntimeInstallCommand() *cobra.Command

func NewValidateLimitsCommand added in v0.2.7

func NewValidateLimitsCommand() *cobra.Command

func ValidateGitOpsUsage added in v0.2.7

func ValidateGitOpsUsage(usage platmodel.GitOpsUsage, limits platmodel.GitOpsLimits, failCondition string, subject string) error

ValidateGitOpsUsage checks whether the usage exceeds or reaches the defined limits. - If 'limits' for a field is nil, validation passes for that field. - If 'subject' is provided, only that field is checked. Otherwise, all fields are checked. - If 'failCondition' is "reached", validation fails if usage == limit. - If 'failCondition' is "exceeded", validation fails only if usage > limit. - If a field in 'usage' has no corresponding field in 'limits', validation passes for that field.

Types

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 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 {
	Repo             string
	CreateRepo       bool
	GsName           string
	RuntimeName      string
	RuntimeNamespace string
	Exclude          string
	Include          string
}

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
	Repo        string
	Include     *string
	Exclude     *string
}

type HelmValidateValuesOptions added in v0.1.43

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

type RuntimeUninstallOptions

type RuntimeUninstallOptions struct {
	RuntimeName      string
	Force            bool
	DisableTelemetry bool
}

type ValidateLimitsOptions added in v0.2.7

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

Jump to

Keyboard shortcuts

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