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, input *model.AddonStatusInput) int ChangeOperatorStatus func(childComplexity int, input *model.OperatorStatusInput) int } NameSpace struct { Namespace func(childComplexity int) 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 GetAvailableNamespaces func(childComplexity int) 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 QueryResolver interface { GetAvailableAddons(ctx context.Context, selector *model.MeshType) ([]*model.AddonList, error) GetControlPlanes(ctx context.Context, filter *model.ControlPlaneFilter) ([]*model.ControlPlane, error) GetOperatorStatus(ctx context.Context) (*model.OperatorStatus, error) GetAvailableNamespaces(ctx context.Context) ([]*model.NameSpace, error) }
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.