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

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