Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { AddonList struct { Name func(childComplexity int) int Owner func(childComplexity int) int } ApplicationPage struct { Applications func(childComplexity int) int Page func(childComplexity int) int PageSize func(childComplexity int) int TotalCount func(childComplexity int) int } ApplicationResult struct { ApplicationFile func(childComplexity int) int CreatedAt func(childComplexity int) int ID func(childComplexity int) int Location func(childComplexity int) int Name func(childComplexity int) int Type func(childComplexity int) int UpdatedAt func(childComplexity int) int UserID func(childComplexity int) int Visibility func(childComplexity int) int } CatalogFilter struct { CatalogData func(childComplexity int) int CreatedAt func(childComplexity int) int FilterFile func(childComplexity int) int FilterResource func(childComplexity int) int ID func(childComplexity int) int Location func(childComplexity int) int Name func(childComplexity int) int UpdatedAt func(childComplexity int) int UserID func(childComplexity int) int Visibility func(childComplexity int) int } CatalogPattern struct { CatalogData func(childComplexity int) int CreatedAt func(childComplexity int) int ID func(childComplexity int) int Location func(childComplexity int) int Name func(childComplexity int) int PatternFile func(childComplexity int) int UpdatedAt func(childComplexity int) int UserID func(childComplexity int) int Visibility func(childComplexity int) int } ClusterResources struct { Resources func(childComplexity int) int } ConfigurationPage struct { Applications func(childComplexity int) int Filters func(childComplexity int) int Patterns func(childComplexity int) int } Container struct { ContainerName func(childComplexity int) int ControlPlaneMemberName func(childComplexity int) int Image func(childComplexity int) int Ports func(childComplexity int) int Resources func(childComplexity int) int Status func(childComplexity int) int } Container_Port struct { ContainerPort func(childComplexity int) int Name func(childComplexity int) int Protocol func(childComplexity int) int } Container_Status struct { ContainerID func(childComplexity int) int ContainerStatusName func(childComplexity int) int Image func(childComplexity int) int ImageID func(childComplexity int) int LastState func(childComplexity int) int Ready func(childComplexity int) int RestartCount func(childComplexity int) int Started func(childComplexity int) int State func(childComplexity int) int } ControlPlane struct { Members func(childComplexity int) int Name func(childComplexity int) int } ControlPlaneMember struct { Component func(childComplexity int) int DataPlanes func(childComplexity int) int Name func(childComplexity int) int Namespace func(childComplexity int) int Version func(childComplexity int) int } DataPlane struct { Name func(childComplexity int) int Proxies func(childComplexity int) int } Error struct { Code func(childComplexity int) int Description func(childComplexity int) int } Event struct { ActedUpon func(childComplexity int) int Action func(childComplexity int) int Category func(childComplexity int) int CreatedAt func(childComplexity int) int DeletedAt func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Metadata func(childComplexity int) int OperationID func(childComplexity int) int Severity func(childComplexity int) int Status func(childComplexity int) int SystemID func(childComplexity int) int UpdatedAt func(childComplexity int) int UserID func(childComplexity int) int } FilterPage struct { Filters func(childComplexity int) int Page func(childComplexity int) int PageSize func(childComplexity int) int TotalCount func(childComplexity int) int } FilterResult struct { CatalogData func(childComplexity int) int CreatedAt func(childComplexity int) int FilterFile func(childComplexity int) int FilterResource func(childComplexity int) int ID func(childComplexity int) int Location func(childComplexity int) int Name func(childComplexity int) int UpdatedAt func(childComplexity int) int UserID func(childComplexity int) int Visibility func(childComplexity int) int } K8sContext struct { ConnectionID func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeploymentType func(childComplexity int) int ID func(childComplexity int) int KubernetesServerID func(childComplexity int) int MesheryInstanceID func(childComplexity int) int Name func(childComplexity int) int Owner func(childComplexity int) int Server func(childComplexity int) int UpdatedAt func(childComplexity int) int Version func(childComplexity int) int } K8sContextsPage struct { Contexts func(childComplexity int) int TotalCount func(childComplexity int) int } KctlDescribeDetails struct { Ctxid func(childComplexity int) int Describe func(childComplexity int) int } Location struct { Branch func(childComplexity int) int Host func(childComplexity int) int Path func(childComplexity int) int Type func(childComplexity int) int } MeshModelComponent struct { Count func(childComplexity int) int Name func(childComplexity int) int } MeshModelRelationship struct { Count func(childComplexity int) int Name func(childComplexity int) int } MeshModelSummary struct { Components func(childComplexity int) int Relationships func(childComplexity int) int } MeshSyncEvent struct { ContextID func(childComplexity int) int Object func(childComplexity int) int Type func(childComplexity int) int } MesheryControllersStatusListItem struct { ContextID func(childComplexity int) int Controller func(childComplexity int) int Status func(childComplexity int) int Version func(childComplexity int) int } MesheryResult struct { CreatedAt func(childComplexity int) int Mesh func(childComplexity int) int MesheryID func(childComplexity int) int Name func(childComplexity int) int PerformanceProfile func(childComplexity int) int RunnerResults func(childComplexity int) int ServerBoardConfig func(childComplexity int) int ServerMetrics func(childComplexity int) int TestID func(childComplexity int) int TestStartTime func(childComplexity int) int UpdatedAt func(childComplexity int) int UserID func(childComplexity int) int } Mutation struct { ChangeAdapterStatus func(childComplexity int, input *model.AdapterStatusInput) int ChangeOperatorStatus func(childComplexity int, input *model.OperatorStatusInput) int } NameSpace struct { Namespace func(childComplexity int) int } NullString struct { String func(childComplexity int) int Valid func(childComplexity int) int } OAMCapability struct { Host func(childComplexity int) int ID func(childComplexity int) int Metadata func(childComplexity int) int OamDefinition func(childComplexity int) int OamRefSchema func(childComplexity int) int Restricted func(childComplexity int) int } OperatorControllerStatus struct { ContextID func(childComplexity int) int Error func(childComplexity int) int Name func(childComplexity int) int Status func(childComplexity int) int Version func(childComplexity int) int } OperatorControllerStatusPerK8sContext struct { ContextID func(childComplexity int) int OperatorControllerStatus func(childComplexity int) int } OperatorStatus struct { ContextID func(childComplexity int) int Controllers func(childComplexity int) int Error func(childComplexity int) int Status func(childComplexity int) int Version func(childComplexity int) int } OperatorStatusPerK8sContext struct { ContextID func(childComplexity int) int OperatorStatus func(childComplexity int) int } PatternPageResult struct { Page func(childComplexity int) int PageSize func(childComplexity int) int Patterns func(childComplexity int) int TotalCount func(childComplexity int) int } PatternResult struct { CanSupport func(childComplexity int) int CatalogData func(childComplexity int) int CreatedAt func(childComplexity int) int Errmsg func(childComplexity int) int ID func(childComplexity int) int Location func(childComplexity int) int Name func(childComplexity int) int PatternFile func(childComplexity int) int UpdatedAt func(childComplexity int) int UserID func(childComplexity int) int Visibility func(childComplexity int) int } PerfPageProfiles struct { Page func(childComplexity int) int PageSize func(childComplexity int) int Profiles func(childComplexity int) int TotalCount func(childComplexity int) int } PerfPageResult struct { Page func(childComplexity int) int PageSize func(childComplexity int) int Results func(childComplexity int) int TotalCount func(childComplexity int) int } PerfProfile struct { ConcurrentRequest func(childComplexity int) int ContentType func(childComplexity int) int CreatedAt func(childComplexity int) int Duration func(childComplexity int) int Endpoints func(childComplexity int) int ID func(childComplexity int) int LastRun func(childComplexity int) int LoadGenerators func(childComplexity int) int Metadata func(childComplexity int) int Name func(childComplexity int) int QPS func(childComplexity int) int RequestBody func(childComplexity int) int RequestCookies func(childComplexity int) int RequestHeaders func(childComplexity int) int ServiceMesh func(childComplexity int) int TotalResults func(childComplexity int) int UpdatedAt func(childComplexity int) int UserID func(childComplexity int) int } Query struct { FetchAllResults func(childComplexity int, selector model.PageFilter) int FetchFilterCatalogContent func(childComplexity int, selector *model.CatalogSelector) int FetchPatternCatalogContent func(childComplexity int, selector *model.CatalogSelector) int FetchPatterns func(childComplexity int, selector model.PageFilter) int FetchResults func(childComplexity int, selector model.PageFilter, profileID string) int FetchTelemetryComponents func(childComplexity int, contexts []string) int GetAvailableAddons func(childComplexity int, filter *model.ServiceMeshFilter) int GetAvailableNamespaces func(childComplexity int, k8sClusterIDs []string) int GetControlPlanes func(childComplexity int, filter *model.ServiceMeshFilter) int GetDataPlanes func(childComplexity int, filter *model.ServiceMeshFilter) int GetKubectlDescribe func(childComplexity int, name string, kind string, namespace string) int GetMeshModelSummary func(childComplexity int, selector model.MeshModelSummarySelector) int GetMeshsyncStatus func(childComplexity int, connectionID string) int GetNatsStatus func(childComplexity int, connectionID string) int GetOperatorStatus func(childComplexity int, k8scontextID string) int GetPerfResult func(childComplexity int, id string) int GetPerformanceProfiles func(childComplexity int, selector model.PageFilter) int ResyncCluster func(childComplexity int, selector *model.ReSyncActions, k8scontextID string) int } Resource struct { Count func(childComplexity int) int Kind func(childComplexity int) int } Subscription struct { ListenToOperatorState func(childComplexity int, k8scontextIDs []string) int SubscribeClusterResources func(childComplexity int, k8scontextIDs []string, namespace string) int SubscribeConfiguration func(childComplexity int, patternSelector model.PageFilter, filterSelector model.PageFilter) int SubscribeEvents func(childComplexity int) int SubscribeK8sContext func(childComplexity int, selector model.PageFilter) int SubscribeMeshModelSummary func(childComplexity int, selector model.MeshModelSummarySelector) int SubscribeMeshSyncEvents func(childComplexity int, k8scontextIDs []string, eventTypes []model.MeshSyncEventType) int SubscribeMesheryControllersStatus func(childComplexity int, k8scontextIDs []string) int SubscribePerfProfiles func(childComplexity int, selector model.PageFilter) int SubscribePerfResults func(childComplexity int, selector model.PageFilter, profileID string) int } TelemetryComp struct { Name func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type MutationResolver ¶
type QueryResolver ¶
type QueryResolver interface { GetAvailableAddons(ctx context.Context, filter *model.ServiceMeshFilter) ([]*model.AddonList, error) GetControlPlanes(ctx context.Context, filter *model.ServiceMeshFilter) ([]*model.ControlPlane, error) GetDataPlanes(ctx context.Context, filter *model.ServiceMeshFilter) ([]*model.DataPlane, error) GetOperatorStatus(ctx context.Context, k8scontextID string) (*model.MesheryControllersStatusListItem, error) ResyncCluster(ctx context.Context, selector *model.ReSyncActions, k8scontextID string) (model.Status, error) GetMeshsyncStatus(ctx context.Context, connectionID string) (*model.OperatorControllerStatus, error) GetNatsStatus(ctx context.Context, connectionID string) (*model.OperatorControllerStatus, error) GetAvailableNamespaces(ctx context.Context, k8sClusterIDs []string) ([]*model.NameSpace, error) GetPerfResult(ctx context.Context, id string) (*model.MesheryResult, error) FetchResults(ctx context.Context, selector model.PageFilter, profileID string) (*model.PerfPageResult, error) GetPerformanceProfiles(ctx context.Context, selector model.PageFilter) (*model.PerfPageProfiles, error) FetchAllResults(ctx context.Context, selector model.PageFilter) (*model.PerfPageResult, error) FetchPatterns(ctx context.Context, selector model.PageFilter) (*model.PatternPageResult, error) GetKubectlDescribe(ctx context.Context, name string, kind string, namespace string) (*model.KctlDescribeDetails, error) FetchPatternCatalogContent(ctx context.Context, selector *model.CatalogSelector) ([]*model.CatalogPattern, error) FetchFilterCatalogContent(ctx context.Context, selector *model.CatalogSelector) ([]*model.CatalogFilter, error) GetMeshModelSummary(ctx context.Context, selector model.MeshModelSummarySelector) (*model.MeshModelSummary, error) FetchTelemetryComponents(ctx context.Context, contexts []string) ([]*model.TelemetryComp, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface { ListenToOperatorState(ctx context.Context, k8scontextIDs []string) (<-chan *model.OperatorStatusPerK8sContext, error) SubscribePerfProfiles(ctx context.Context, selector model.PageFilter) (<-chan *model.PerfPageProfiles, error) SubscribePerfResults(ctx context.Context, selector model.PageFilter, profileID string) (<-chan *model.PerfPageResult, error) SubscribeMesheryControllersStatus(ctx context.Context, k8scontextIDs []string) (<-chan []*model.MesheryControllersStatusListItem, error) SubscribeMeshSyncEvents(ctx context.Context, k8scontextIDs []string, eventTypes []model.MeshSyncEventType) (<-chan *model.MeshSyncEvent, error) SubscribeConfiguration(ctx context.Context, patternSelector model.PageFilter, filterSelector model.PageFilter) (<-chan *model.ConfigurationPage, error) SubscribeClusterResources(ctx context.Context, k8scontextIDs []string, namespace string) (<-chan *model.ClusterResources, error) SubscribeK8sContext(ctx context.Context, selector model.PageFilter) (<-chan *model.K8sContextsPage, error) SubscribeMeshModelSummary(ctx context.Context, selector model.MeshModelSummarySelector) (<-chan *model.MeshModelSummary, error) SubscribeEvents(ctx context.Context) (<-chan *model.Event, error) }
Click to show internal directories.
Click to hide internal directories.