Documentation ¶
Index ¶
- Constants
- Variables
- func ErrAdapterInsufficientInformation(err error) error
- func ErrAddonSubscription(err error) error
- func ErrApplicationsSubscription(err error) error
- func ErrClusterResourcesSubscription(err error) error
- func ErrControlPlaneSubscription(err error) error
- func ErrDataPlaneSubscription(err error) error
- func ErrFetchingPatterns(err error) error
- func ErrFiltersSubscription(err error) error
- func ErrGettingClusterResources(err error) error
- func ErrGettingMeshModelSummary(err error) error
- func ErrGettingNamespace(err error) error
- func ErrGettingRegistryManager(err error) error
- func ErrGettingTelemetryComponents(err error) error
- func ErrGormDatabase(err error) error
- func ErrInvalidOAMType() error
- func ErrK8sContextSubscription(err error) error
- func ErrKubectlDescribe(err error) error
- func ErrMeshModelSummarySubscription(err error) error
- func ErrMeshsyncSubscription(err error) error
- func ErrOperatorSubscription(err error) error
- func ErrPatternsSubscription(err error) error
- func ErrPerformanceProfilesSubscription(err error) error
- func ErrPerformanceResultSubscription(err error) error
- func ErrPublishBroker(err error) error
- type MeshModelComponentResponse
- type MeshModelRelationshipResponse
- type Resolver
Constants ¶
View Source
const ( ErrResolverInvalidRequestCode = "1350" ErrResolverNilClientCode = "1351" ErrResolverMeshsyncSubscriptionCode = "1353" ErrResolverOperatorSubscriptionCode = "1354" ErrAddonSubscriptionCode = "1355" ErrResolverControlPlaneSubscriptionCode = "1356" ErrMesheryClientCode = "1357" ErrResolverPublishBrokerCode = "1358" ErrNoMeshSyncCode = "1359" ErrDataPlaneSubscriptionCode = "1360" ErrBrokerNotConnectedCode = "1361" ErrGettingNamespaceCode = "1362" ErrFetchingPatternsCode = "1363" ErrInvalidOAMTypeCode = "1364" ErrKubectlDescribeCode = "1365" ErrEmptyCurrentK8sContextCode = "1366" ErrConfigurationPatternsCode = "1367" ErrConfigurationApplicationsCode = "1368" ErrConfigurationFiltersCode = "1369" ErrK8sContextCode = "1370" ErrClusterResourcesSubscriptionCode = "1371" ErrGettingClusterResourcesCode = "1372" ErrMeshModelSummarySubscriptionCode = "1373" ErrGettingMeshModelSummaryCode = "1374" ErrGettingRegistryManagerCode = "1375" ErrGettingTelemetryComponentsCode = "1376" ErrAdapterInsufficientInformationCode = "1377" ErrPerformanceProfilesSubscriptionCode = "1378" ErrPerformanceResultSubscriptionCode = "1379" ErrGormDatabaseCode = "1380" )
Please reference the following before contributing an error code: https://docs.meshery.io/project/contributing/contributing-error https://github.com/meshery/meshkit/blob/master/errors/errors.go
Variables ¶
View Source
var ( ErrNilClient = errors.New(ErrResolverNilClientCode, errors.Alert, []string{"Kubernetes client not initialized"}, []string{"Kubernetes config is not initialized with Meshery"}, []string{}, []string{"Upload your kubernetes config via the settings dashboard. If uploaded, wait for a minute for it to get initialized"}) ErrInvalidRequest = errors.New(ErrResolverInvalidRequestCode, errors.Alert, []string{"Invalid query, please check syntax"}, []string{"The Graphql query requested is invalid"}, []string{}, []string{"Check the query parameters and syntax of the query being run"}) ErrNoMeshSync = errors.New(ErrNoMeshSyncCode, errors.Alert, []string{"MeshSync disabled"}, []string{"MeshSync custom controller is not running in your kubernetes cluster"}, []string{"Meshery Operator is not running in your cluster or is crashing"}, []string{"Enable Meshery Operator from the settings page in the UI", "Check for logs in the meshery-operator pods from inside the application for more information"}) ErrBrokerNotConnected = errors.New(ErrBrokerNotConnectedCode, errors.Alert, []string{"Broker not connected"}, []string{"Meshery Broker is not connected to Meshery Server"}, []string{"Meshery Broker is crashed or not reachable"}, []string{"Restart Meshery Server", "Please check if Meshery server has access to the Broker"}) ErrEmptyCurrentK8sContext = errors.New(ErrEmptyCurrentK8sContextCode, errors.Alert, []string{"Current kubernetes context is empty"}, []string{"Meshery is not able to get the current kubernetes context"}, []string{"Meshery is crashed or not reachable"}, []string{"Restart Meshery Server", "Please check if Meshery server is accessible to the Database"}) )
View Source
var ( MeshSyncSubscriptionError = model.Error{ Description: "Failed to get MeshSync data", Code: ErrResolverMeshsyncSubscriptionCode, } MeshSyncMesheryClientMissingError = model.Error{ Code: ErrResolverMeshsyncSubscriptionCode, Description: "Cannot find Meshery Client", } )
Functions ¶
func ErrAdapterInsufficientInformation ¶ added in v0.6.120
func ErrAddonSubscription ¶
func ErrFetchingPatterns ¶
func ErrFiltersSubscription ¶
func ErrGettingMeshModelSummary ¶ added in v0.6.46
func ErrGettingNamespace ¶
func ErrGettingRegistryManager ¶ added in v0.6.46
func ErrGettingTelemetryComponents ¶ added in v0.6.48
func ErrGormDatabase ¶ added in v0.7.1
func ErrInvalidOAMType ¶
func ErrInvalidOAMType() error
func ErrKubectlDescribe ¶
func ErrMeshModelSummarySubscription ¶ added in v0.6.46
func ErrMeshsyncSubscription ¶
func ErrOperatorSubscription ¶
func ErrPatternsSubscription ¶
func ErrPublishBroker ¶
Types ¶
type MeshModelComponentResponse ¶ added in v0.6.46
type MeshModelRelationshipResponse ¶ added in v0.6.46
type Resolver ¶
type Resolver struct { Log logger.Handler BrokerConn broker.Handler MeshSyncChannelPerK8sContext map[string]chan struct{} Config *models.HandlerConfig Broadcast broadcast.Broadcaster // contains filtered or unexported fields }
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() generated.MutationResolver
Mutation returns generated.MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() generated.QueryResolver
Query returns generated.QueryResolver implementation.
func (*Resolver) Subscription ¶
func (r *Resolver) Subscription() generated.SubscriptionResolver
Subscription returns generated.SubscriptionResolver implementation.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.