Documentation
¶
Index ¶
- Constants
- func ValidateComponentName(val interface{}) error
- func ValidateGitHubURL(urlStr string) error
- func ValidateName(resourceType string, val interface{}) error
- func ValidateNamespaceName(val interface{}) error
- func ValidateProjectName(val interface{}) error
- func ValidateURL(val interface{}) error
- type CommandType
- type ResourceType
Constants ¶
View Source
const (
// ResourceNamePattern is the regex pattern that resource names must follow
ResourceNamePattern = "^[a-z0-9][a-z0-9-]*[a-z0-9]$"
)
Variables ¶
This section is empty.
Functions ¶
func ValidateComponentName ¶
func ValidateComponentName(val interface{}) error
ValidateComponentName validates a component name
func ValidateGitHubURL ¶
ValidateGitHubURL validates that a URL is a proper GitHub repository URL
func ValidateName ¶
ValidateName validates that a resource name follows the required pattern
func ValidateNamespaceName ¶ added in v0.13.0
func ValidateNamespaceName(val interface{}) error
ValidateNamespaceName validates an namespace name
func ValidateProjectName ¶
func ValidateProjectName(val interface{}) error
ValidateProjectName validates a project name
Types ¶
type CommandType ¶
type CommandType string
CommandType represents the type of CLI command
const ( CmdCreate CommandType = "create" CmdGet CommandType = "get" CmdList CommandType = "list" CmdLogs CommandType = "logs" CmdApply CommandType = "apply" CmdDelete CommandType = "delete" CmdDeploy CommandType = "deploy" )
type ResourceType ¶
type ResourceType string
ResourceType represents the resource being managed
const ( ResourceProject ResourceType = "project" ResourceComponent ResourceType = "component" ResourceDeployment ResourceType = "deployment" ResourceEnvironment ResourceType = "environment" ResourceDeployableArtifact ResourceType = "deployableartifact" ResourceEndpoint ResourceType = "endpoint" ResourceNamespace ResourceType = "namespace" ResourceDataPlane ResourceType = "dataplane" ResourceWorkflowPlane ResourceType = "workflowplane" ResourceObservabilityPlane ResourceType = "observabilityplane" ResourceComponentType ResourceType = "componenttype" ResourceTrait ResourceType = "trait" ResourceWorkflow ResourceType = "workflow" ResourceSecretReference ResourceType = "secretreference" ResourceLogs ResourceType = "logs" ResourceApply ResourceType = "apply" ResourceDeploymentPipeline ResourceType = "deploymentpipeline" ResourceWorkload ResourceType = "workload" ResourceComponentRelease ResourceType = "componentrelease" ResourceReleaseBinding ResourceType = "releasebinding" ResourceWorkflowRun ResourceType = "workflowrun" ResourceObservabilityAlertsNotificationChannel ResourceType = "observabilityalertsnotificationchannel" ResourceClusterAuthzRole ResourceType = "clusterauthzrole" ResourceClusterAuthzRoleBinding ResourceType = "clusterauthzrolebinding" ResourceAuthzRole ResourceType = "authzrole" ResourceAuthzRoleBinding ResourceType = "authzrolebinding" )
Click to show internal directories.
Click to hide internal directories.