Documentation
¶
Index ¶
- Constants
- Variables
- func IsValidName(s string) (bool, error)
- func NewAccountCommand() *cobra.Command
- func NewCompletionCommand() *cobra.Command
- func NewProductReleaseCommand() *cobra.Command
- func NewRoot() *cobra.Command
- func NewRuntimeInstallCommand() *cobra.Command
- func NewValidateLimitsCommand() *cobra.Command
- func ValidateGitOpsUsage(usage platmodel.GitOpsUsage, limits platmodel.GitOpsLimits, ...) error
- type ClusterAddOptions
- type ClusterCreateArgoRolloutsOptions
- type ClusterRemoveOptions
- type GitIntegrationAddOptions
- type GitIntegrationRegistrationOpts
- type GitSourceCreateOptions
- type GitSourceDeleteOptions
- type GitSourceEditOptions
- type HelmValidateValuesOptions
- type RuntimeUninstallOptions
- type ValidateLimitsOptions
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 NewAccountCommand ¶ added in v0.2.7
func NewCompletionCommand ¶ added in v0.0.254
func NewProductReleaseCommand ¶ added in v0.1.65
func NewValidateLimitsCommand ¶ added in v0.2.7
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 GitSourceCreateOptions ¶
type GitSourceDeleteOptions ¶
type GitSourceEditOptions ¶ added in v0.0.67
type HelmValidateValuesOptions ¶ added in v0.1.43
type HelmValidateValuesOptions struct {
// contains filtered or unexported fields
}
type RuntimeUninstallOptions ¶
type ValidateLimitsOptions ¶ added in v0.2.7
type ValidateLimitsOptions struct { HelmValidateValuesOptions // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.