generated

package
v0.0.0-...-bb7d711 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 10 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 {
	App struct {
		Annotations func(childComplexity int) int
		Containers  func(childComplexity int) int
		Labels      func(childComplexity int) int
		Namespace   func(childComplexity int) int
		Replicas    func(childComplexity int) int
		Resources   func(childComplexity int) int
		StoragePath func(childComplexity int) int
	}

	Container struct {
		Env   func(childComplexity int) int
		Image func(childComplexity int) int
		Port  func(childComplexity int) int
	}

	Mutation struct {
		CreateApp func(childComplexity int, input model.AppInput) int
		UpdateApp func(childComplexity int, input model.AppInput) int
	}

	Query struct {
		GetApp func(childComplexity int, namespace string) int
	}

	Resources struct {
		Memory    func(childComplexity int) int
		Namespace func(childComplexity int) int
		Storage   func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	CreateApp(ctx context.Context, input model.AppInput) (*model.App, error)
	UpdateApp(ctx context.Context, input model.AppInput) (*model.App, error)
}

type QueryResolver

type QueryResolver interface {
	GetApp(ctx context.Context, namespace string) (*model.App, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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