generated

package
v0.0.0-...-19584a4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 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 {
	Cluster struct {
		ID       func(childComplexity int) int
		Location func(childComplexity int) int
		Name     func(childComplexity int) int
		Version  func(childComplexity int) int
	}

	ClusterNodePool struct {
		ID      func(childComplexity int) int
		Name    func(childComplexity int) int
		Profile func(childComplexity int) int
		Size    func(childComplexity int) int
		Version func(childComplexity int) int
	}

	Query struct {
		Cluster       func(childComplexity int, id string) int
		ClusterConfig func(childComplexity int, id string) int
		Clusters      func(childComplexity int) int
		CreateCluster func(childComplexity int, name string, input *provider.CreateClusterOptions) int
		DeleteCluster func(childComplexity int, id string) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type CreateClusterOptionsResolver

type CreateClusterOptionsResolver interface {
	Version(ctx context.Context, obj *provider.CreateClusterOptions, data *string) error
	NodePools(ctx context.Context, obj *provider.CreateClusterOptions, data []model.CreateClusterNodePoolOptions) error
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	Clusters(ctx context.Context) ([]provider.Cluster, error)
	Cluster(ctx context.Context, id string) (*provider.Cluster, error)
	CreateCluster(ctx context.Context, name string, input *provider.CreateClusterOptions) (*provider.Cluster, error)
	DeleteCluster(ctx context.Context, id string) (string, error)
	ClusterConfig(ctx context.Context, id string) (string, error)
}

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
	CreateClusterOptions() CreateClusterOptionsResolver
}

Jump to

Keyboard shortcuts

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