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 { Endpoint func(childComplexity int) int Name func(childComplexity int) int Owner func(childComplexity int) int } ControlPlane struct { Members func(childComplexity int) int Name func(childComplexity int) int } ControlPlaneMember struct { Component func(childComplexity int) int Name func(childComplexity int) int Namespace func(childComplexity int) int Version func(childComplexity int) int } Error struct { Code func(childComplexity int) int Description func(childComplexity int) int } Mutation struct { ChangeAddonStatus func(childComplexity int, selector *model.MeshType, targetStatus model.Status) int ChangeOperatorStatus func(childComplexity int, targetStatus model.Status) int } OperatorControllerStatus struct { Error func(childComplexity int) int Name func(childComplexity int) int Status func(childComplexity int) int Version func(childComplexity int) int } OperatorStatus struct { Controllers func(childComplexity int) int Error func(childComplexity int) int Status func(childComplexity int) int Version func(childComplexity int) int } Query struct { GetAvailableAddons func(childComplexity int, selector *model.MeshType) int GetControlPlanes func(childComplexity int, filter *model.ControlPlaneFilter) int GetOperatorStatus func(childComplexity int) int } Subscription struct { ListenToAddonState func(childComplexity int, selector *model.MeshType) int ListenToControlPlaneState func(childComplexity int, filter *model.ControlPlaneFilter) int ListenToMeshSyncEvents func(childComplexity int) int ListenToOperatorState func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface { ListenToAddonState(ctx context.Context, selector *model.MeshType) (<-chan []*model.AddonList, error) ListenToControlPlaneState(ctx context.Context, filter *model.ControlPlaneFilter) (<-chan []*model.ControlPlane, error) ListenToOperatorState(ctx context.Context) (<-chan *model.OperatorStatus, error) ListenToMeshSyncEvents(ctx context.Context) (<-chan *model.OperatorControllerStatus, error) }
Click to show internal directories.
Click to hide internal directories.