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 { Executor struct { Args func(childComplexity int) int Command func(childComplexity int) int ContentTypes func(childComplexity int) int ExecutorType func(childComplexity int) int Features func(childComplexity int) int Image func(childComplexity int) int ImagePullSecrets func(childComplexity int) int JobTemplate func(childComplexity int) int Labels func(childComplexity int) int Meta func(childComplexity int) int Types func(childComplexity int) int Uri func(childComplexity int) int } ExecutorDetails struct { Executor func(childComplexity int) int Name func(childComplexity int) int } ExecutorMeta struct { DocsURI func(childComplexity int) int IconURI func(childComplexity int) int Tooltips func(childComplexity int) int } LocalObjectReference struct { Name func(childComplexity int) int } Query struct { Executors func(childComplexity int) int } Subscription struct { Executors func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type ExecutorMetaResolver ¶
type ExecutorResolver ¶
type QueryResolver ¶
type QueryResolver interface {
Executors(ctx context.Context) ([]testkube.ExecutorDetails, error)
}
type Resolver ¶
type Resolver struct { Bus bus.Bus Log *zap.SugaredLogger Client *executorsclientv1.ExecutorsClient }
func (*Resolver) Executor ¶
func (r *Resolver) Executor() ExecutorResolver
Executor returns ExecutorResolver implementation.
func (*Resolver) ExecutorMeta ¶
func (r *Resolver) ExecutorMeta() ExecutorMetaResolver
ExecutorMeta returns ExecutorMetaResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
func (*Resolver) Subscription ¶
func (r *Resolver) Subscription() SubscriptionResolver
Subscription returns SubscriptionResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Executor() ExecutorResolver ExecutorMeta() ExecutorMetaResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface {
Executors(ctx context.Context) (<-chan []testkube.ExecutorDetails, error)
}
Click to show internal directories.
Click to hide internal directories.