resolver

package
v0.7.16 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

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 ErrAdapterInsufficientInformation(err error) error

func ErrAddonSubscription

func ErrAddonSubscription(err error) error

func ErrApplicationsSubscription

func ErrApplicationsSubscription(err error) error

func ErrClusterResourcesSubscription

func ErrClusterResourcesSubscription(err error) error

func ErrControlPlaneSubscription

func ErrControlPlaneSubscription(err error) error

func ErrDataPlaneSubscription

func ErrDataPlaneSubscription(err error) error

func ErrFetchingPatterns

func ErrFetchingPatterns(err error) error

func ErrFiltersSubscription

func ErrFiltersSubscription(err error) error

func ErrGettingClusterResources

func ErrGettingClusterResources(err error) error

func ErrGettingMeshModelSummary added in v0.6.46

func ErrGettingMeshModelSummary(err error) error

func ErrGettingNamespace

func ErrGettingNamespace(err error) error

func ErrGettingRegistryManager added in v0.6.46

func ErrGettingRegistryManager(err error) error

func ErrGettingTelemetryComponents added in v0.6.48

func ErrGettingTelemetryComponents(err error) error

func ErrGormDatabase added in v0.7.1

func ErrGormDatabase(err error) error

func ErrInvalidOAMType

func ErrInvalidOAMType() error

func ErrK8sContextSubscription

func ErrK8sContextSubscription(err error) error

func ErrKubectlDescribe

func ErrKubectlDescribe(err error) error

func ErrMeshModelSummarySubscription added in v0.6.46

func ErrMeshModelSummarySubscription(err error) error

func ErrMeshsyncSubscription

func ErrMeshsyncSubscription(err error) error

func ErrOperatorSubscription

func ErrOperatorSubscription(err error) error

func ErrPatternsSubscription

func ErrPatternsSubscription(err error) error

func ErrPerformanceProfilesSubscription

func ErrPerformanceProfilesSubscription(err error) error

func ErrPerformanceResultSubscription

func ErrPerformanceResultSubscription(err error) error

func ErrPublishBroker

func ErrPublishBroker(err error) error

Types

type MeshModelComponentResponse added in v0.6.46

type MeshModelComponentResponse struct {
	Name     string   `json:"name"`
	Versions []string `json:"versions"`
}

type MeshModelRelationshipResponse added in v0.6.46

type MeshModelRelationshipResponse struct {
	Name    string   `json:"name"`
	Subtype []string `json:"subType"`
}

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.

Jump to

Keyboard shortcuts

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