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 ClusterResolver ¶
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 ResolverRoot ¶
type ResolverRoot interface { BYOCCluster() BYOCClusterResolver Cluster() ClusterResolver Entity() EntityResolver Mutation() MutationResolver }
Click to show internal directories.
Click to hide internal directories.