github.com/kubeshop/testkube@v1.17.23/internal/graphql/resolvers/executors_resolver.go (about)

     1  package resolvers
     2  
     3  // This file will be automatically regenerated based on the schema, any resolver implementations
     4  // will be copied through when generating and any unknown code will be moved to the end.
     5  // Code generated by github.com/99designs/gqlgen version v0.17.27
     6  
     7  import (
     8  	"context"
     9  
    10  	"github.com/kubeshop/testkube/pkg/api/v1/testkube"
    11  )
    12  
    13  // Executors is the resolver for the executors field.
    14  func (r *queryResolver) Executors(ctx context.Context, selector string) ([]testkube.ExecutorDetails, error) {
    15  	return r.ExecutorsService.List(selector)
    16  }
    17  
    18  // Executors is the resolver for the executors field.
    19  func (r *subscriptionResolver) Executors(ctx context.Context, selector string) (<-chan []testkube.ExecutorDetails, error) {
    20  	return r.ExecutorsService.SubscribeList(ctx, selector)
    21  }