generated

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownType  = errors.New("unknown type")
	ErrTypeNotFound = errors.New("type not found")
)

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type BYOCClusterResolver

type BYOCClusterResolver interface {
	ClusterToken(ctx context.Context, obj *model.BYOCCluster) (string, error)
}

type ClusterResolver

type ClusterResolver interface {
	ClusterToken(ctx context.Context, obj *model.Cluster) (string, error)
}

type ComplexityRoot

type ComplexityRoot struct {
	BYOCCluster struct {
		ClusterToken func(childComplexity int) int
		Metadata     func(childComplexity int) int
		Spec         func(childComplexity int) int
	}

	Cluster struct {
		ClusterToken func(childComplexity int) int
		Metadata     func(childComplexity int) int
		Spec         func(childComplexity int) int
	}

	Entity struct {
		FindBYOCClusterByMetadataNameAndSpecAccountName func(childComplexity int, metadataName string, specAccountName string) int
		FindClusterByMetadataNameAndSpecAccountName     func(childComplexity int, metadataName string, specAccountName string) int
	}

	Github__com___kloudlite___operator___apis___clusters___v1__BYOCSpec struct {
		AccountName func(childComplexity int) int
	}

	Github__com___kloudlite___operator___apis___clusters___v1__ClusterSpec struct {
		AccountName func(childComplexity int) int
	}

	Metadata struct {
		Name func(childComplexity int) int
	}

	Mutation struct {
		GenerateClusterToken func(childComplexity int, accountName string, clusterName string) int
	}

	Query struct {
		// contains filtered or unexported fields
	}
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type EntityResolver

type EntityResolver interface {
	FindBYOCClusterByMetadataNameAndSpecAccountName(ctx context.Context, metadataName string, specAccountName string) (*model.BYOCCluster, error)
	FindClusterByMetadataNameAndSpecAccountName(ctx context.Context, metadataName string, specAccountName string) (*model.Cluster, error)
}

type MutationResolver

type MutationResolver interface {
	GenerateClusterToken(ctx context.Context, accountName string, clusterName string) (string, error)
}

type ResolverRoot

type ResolverRoot interface {
	BYOCCluster() BYOCClusterResolver
	Cluster() ClusterResolver
	Entity() EntityResolver
	Mutation() MutationResolver
}

Jump to

Keyboard shortcuts

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