generated

package
v0.0.0-...-5c3bd1c Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 13 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 {
	Group struct {
		ID     func(childComplexity int) int
		Kind   func(childComplexity int) int
		Name   func(childComplexity int) int
		Parent func(childComplexity int) int
	}

	Mutation struct {
		CreateGroup    func(childComplexity int, name string, input *provider.CreateGroupOptions) int
		CreatePipeline func(childComplexity int, group string, name string, input *provider.CreatePipelineOptions) int
		DeleteGroup    func(childComplexity int, id string) int
		DeletePipeline func(childComplexity int, id string) int
	}

	Pipeline struct {
		Group func(childComplexity int) int
		ID    func(childComplexity int) int
		Kind  func(childComplexity int) int
		Name  func(childComplexity int) int
	}

	Query struct {
		Version func(childComplexity int) int
	}

	Version struct {
		Version func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type CreateGroupOptionsResolver

type CreateGroupOptionsResolver interface {
	Parent(ctx context.Context, obj *provider.CreateGroupOptions, data *string) error
}

type CreatePipelineOptionsResolver

type CreatePipelineOptionsResolver interface {
	Description(ctx context.Context, obj *provider.CreatePipelineOptions, data *string) error
}

type DirectiveRoot

type DirectiveRoot struct {
}

type GroupResolver

type GroupResolver interface {
	Parent(ctx context.Context, obj *provider.Group) (*provider.Group, error)
}

type MutationResolver

type MutationResolver interface {
	CreateGroup(ctx context.Context, name string, input *provider.CreateGroupOptions) (*provider.Group, error)
	DeleteGroup(ctx context.Context, id string) (string, error)
	CreatePipeline(ctx context.Context, group string, name string, input *provider.CreatePipelineOptions) (*provider.Pipeline, error)
	DeletePipeline(ctx context.Context, id string) (string, error)
}

type PipelineResolver

type PipelineResolver interface {
	Group(ctx context.Context, obj *provider.Pipeline) (*provider.Group, error)
}

type QueryResolver

type QueryResolver interface {
	Version(ctx context.Context) (*model.Version, error)
}

type ResolverRoot

type ResolverRoot interface {
	Group() GroupResolver
	Mutation() MutationResolver
	Pipeline() PipelineResolver
	Query() QueryResolver
	CreateGroupOptions() CreateGroupOptionsResolver
	CreatePipelineOptions() CreatePipelineOptionsResolver
}

Jump to

Keyboard shortcuts

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