Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- func SliceToSliceOfPointers[T interface{}](in []T) (out []*T)
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type EventResolver
- type ExecutorDetailsResolver
- type ExecutorMetaResolver
- type ExecutorResolver
- type QueryResolver
- type Resolver
- type ResolverRoot
- type SubscriptionResolver
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.
func SliceToSliceOfPointers ¶
func SliceToSliceOfPointers[T interface{}](in []T) (out []*T)
!!! WARNING !!! The code below was going to be deleted when updating resolvers. It has been copied here so you have one last chance to move it out of harms way if you want. There are two reasons this happens:
- When renaming or deleting a resolver the old code will be put in here. You can safely delete it when you're done.
- You have helper methods in this file. Move them out to keep these resolver files clean.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Event struct { Resource func(childComplexity int) int ResourceId func(childComplexity int) int Type func(childComplexity int) int } 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 { Event func(childComplexity int) int 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 EventResolver ¶
type ExecutorDetailsResolver ¶
type ExecutorMetaResolver ¶
type ExecutorResolver ¶
type QueryResolver ¶
type Resolver ¶
type Resolver struct { Bus bus.Bus Log *zap.SugaredLogger Client *executorsclientv1.ExecutorsClient }
func (*Resolver) Event ¶
func (r *Resolver) Event() EventResolver
Event returns EventResolver implementation.
func (*Resolver) Executor ¶
func (r *Resolver) Executor() ExecutorResolver
Executor returns ExecutorResolver implementation.
func (*Resolver) ExecutorDetails ¶
func (r *Resolver) ExecutorDetails() ExecutorDetailsResolver
ExecutorDetails returns ExecutorDetailsResolver 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 { Event() EventResolver Executor() ExecutorResolver ExecutorDetails() ExecutorDetailsResolver 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.