Documentation
¶
Index ¶
- Constants
- func GetDetailedErrorMessage(baseMessage, operation, clusterUUID, details string) string
- func GetErrorMessage(baseMessage, operation, clusterUUID string) string
- func GetFilteredErrorMessage(baseMessage, operation, clusterUUID string, err error) string
- func GetSafeErrorMessage(baseMessage, operation, clusterUUID string, err error) string
Constants ¶
View Source
const ( TurkishLanguage = "tr" EnglishLanguage = "en" )
Language
View Source
const ( DeletedNodeGroupStatus = "DELETED" ActiveNodeGroupStatus = "ACTIVE" ActiveClusterStatus = "Active" )
Node Group Status
View Source
const ( DeleteStateInitial = "INITIAL" DeleteStateLoadBalancer = "LOADBALANCER" DeleteStateDNS = "DNS" DeleteStateFloatingIP = "FLOATING_IP" DeleteStateNodes = "NODES" DeleteStateSecurityGroups = "SECURITY_GROUPS" DeleteStateCredentials = "CREDENTIALS" DeleteStateCompleted = "COMPLETED" )
View Source
const ( // Authentication Errors ErrAuthTokenCheckFailed = "Authentication token validation failed" ErrAuthTokenInvalid = "Invalid authentication token provided" ErrAuthTokenExpired = "Authentication token has expired" ErrAuthTokenMissing = "Authentication token is missing" // Cluster Creation Errors ErrClusterCreateFailed = "Cluster creation process failed" ErrClusterNameInvalid = "Invalid cluster name provided" ErrClusterVersionInvalid = "Invalid Kubernetes version specified" ErrClusterProjectInvalid = "Invalid project ID provided" ErrClusterSubnetInvalid = "Invalid subnet configuration" ErrClusterKeypairInvalid = "Invalid node keypair name" ErrClusterGetFailed = "Failed to get cluster" // Cluster Resource Errors ErrLoadBalancerCreateFailed = "Failed to create load balancer for cluster" ErrLoadBalancerDeleteFailed = "Failed to delete load balancer components" ErrDNSRecordCreateFailed = "Failed to create DNS record for cluster" ErrDNSRecordDeleteFailed = "Failed to delete DNS record" ErrFloatingIPCreateFailed = "Failed to create floating IP for cluster" ErrFloatingIPDeleteFailed = "Failed to delete floating IP" ErrSecurityGroupCreateFailed = "Failed to create security groups" ErrSecurityGroupDeleteFailed = "Failed to delete security groups" ErrApplicationCredentialCreateFailed = "Failed to create application credential" ErrApplicationCredentialDeleteFailed = "Failed to delete application credentials" // Node Group Errors ErrNodeGroupCreateFailed = "Failed to create node groups" ErrNodeGroupDeleteFailed = "Failed to delete node groups" ErrNodeGroupUpdateFailed = "Failed to update node groups" ErrNodeGroupScalingFailed = "Failed to scale node groups" // Compute Errors ErrComputeCreateFailed = "Failed to create compute instance" ErrComputeDeleteFailed = "Failed to delete compute instance" ErrComputeQuotaExceeded = "Compute quota exceeded" ErrComputeServerGroupCreateFailed = "Failed to create server group" ErrComputeServerGroupDeleteFailed = "Failed to delete server group" // Network Errors ErrNetworkCreateFailed = "Failed to create network components" ErrNetworkDeleteFailed = "Failed to delete network components" ErrSubnetCreateFailed = "Failed to create subnet" ErrSubnetDeleteFailed = "Failed to delete subnet" // Database Errors ErrDatabaseConnectionFailed = "Database connection failed" ErrDatabaseQueryFailed = "Database query execution failed" ErrDatabaseTransactionFailed = "Database transaction failed" ErrResourceCreateFailed = "Failed to create resource record" ErrResourceDeleteFailed = "Failed to delete resource record" ErrAuditLogCreateFailed = "Failed to create audit log entry" // Kubernetes Errors ErrKubeconfigCreateFailed = "Failed to create kubeconfig" ErrKubeconfigUpdateFailed = "Failed to update kubeconfig" ErrKubeconfigDeleteFailed = "Failed to delete kubeconfig" ErrKubeconfigInvalid = "Invalid kubeconfig format" // Cloudflare Errors ErrCloudflareRecordCreateFailed = "Failed to create Cloudflare DNS record" ErrCloudflareRecordDeleteFailed = "Failed to delete Cloudflare DNS record" ErrCloudflareTokenInvalid = "Invalid Cloudflare authentication token" // OpenStack API Errors ErrOpenStackAPIConnectionFailed = "Failed to connect to OpenStack API" ErrOpenStackAPIRequestFailed = "OpenStack API request failed" ErrOpenStackAPIResponseInvalid = "Invalid response from OpenStack API" // General System Errors ErrSystemResourceExhausted = "System resources exhausted" ErrSystemTimeout = "Operation timed out" ErrSystemMaintenance = "System under maintenance" // Validation Errors ErrValidationFailed = "Input validation failed" ErrValidationRequired = "Required field missing" ErrValidationFormat = "Invalid data format" ErrValidationRange = "Value out of acceptable range" // Unknown Errors ErrUnknown = "An unknown error occurred" )
Cluster Error Messages
View Source
const ( ErrorCategoryAuth = "authentication" ErrorCategoryCluster = "cluster_operation" ErrorCategoryResource = "resource_management" ErrorCategoryNetwork = "network" ErrorCategoryDatabase = "database" ErrorCategoryKubernetes = "kubernetes" ErrorCategoryCloudflare = "cloudflare" ErrorCategoryOpenStack = "openstack" ErrorCategorySystem = "system" ErrorCategoryValidation = "validation" ErrorCategoryUnknown = "unknown" )
Error Categories for better organization
View Source
const ( ComputePath = "v2.1/servers" FlavorPath = "v2.1/flavors" ProjectPath = "v3/projects" ServerGroupPath = "v2.1/os-server-groups" AmphoraePath = "v2/octavia/amphorae" FloatingIPPath = "v2.0/floatingips" OSInterfacePath = "os-interface" TokenPath = "v3/auth/tokens" )
View Source
const ( CreateMemberPath = "v2/lbaas/pools" LoadBalancerPath = "v2/lbaas/loadbalancers" ListenersPath = "v2/lbaas/listeners" SubnetsPath = "v2.0/subnets" NetworkPort = "v2.0/ports" SecurityGroupPath = "v2.0/security-groups" SecurityGroupRulesPath = "v2.0/security-group-rules" HealthMonitorPath = "v2/lbaas/healthmonitors" ListenerPoolPath = "v2/lbaas/pools" )
Network related paths
Variables ¶
This section is empty.
Functions ¶
func GetDetailedErrorMessage ¶ added in v1.7.0
func GetErrorMessage ¶ added in v1.7.0
func GetFilteredErrorMessage ¶ added in v1.8.0
func GetSafeErrorMessage ¶ added in v1.8.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.