generated

package
v0.0.0-...-e05fada Latest Latest
Warning

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

Go to latest
Published: Jan 13, 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 {
		CPU       func(childComplexity int) int
		Env       func(childComplexity int) int
		Image     func(childComplexity int) int
		Memory    func(childComplexity int) int
		Name      func(childComplexity int) int
		Namespace func(childComplexity int) int
		Ports     func(childComplexity int) int
		Replicas  func(childComplexity int) int
		State     func(childComplexity int) int
		Status    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, name string, namespace string) int
	}

	State struct {
		Statefulset func(childComplexity int) int
		StoragePath func(childComplexity int) int
		StorageSize func(childComplexity int) int
	}

	Status struct {
		Deployment   func(childComplexity int) int
		LoadBalancer func(childComplexity int) int
		Namespace    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, name string, 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