gen

package
v1.11.8-beta-07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 14 Imported by: 0

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, selector string) int
	}

	Subscription struct {
		Executors func(childComplexity int, selector string) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	Executors(ctx context.Context, selector string) ([]testkube.ExecutorDetails, error)
}

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
	Subscription() SubscriptionResolver
}

type SubscriptionResolver

type SubscriptionResolver interface {
	Executors(ctx context.Context, selector string) (<-chan []testkube.ExecutorDetails, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL