generated

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: Apache-2.0 Imports: 12 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 {
	AddonList struct {
		Endpoint func(childComplexity int) int
		Name     func(childComplexity int) int
		Owner    func(childComplexity int) int
	}

	ControlPlane struct {
		Members func(childComplexity int) int
		Name    func(childComplexity int) int
	}

	ControlPlaneMember struct {
		Component func(childComplexity int) int
		Name      func(childComplexity int) int
		Namespace func(childComplexity int) int
		Version   func(childComplexity int) int
	}

	Error struct {
		Code        func(childComplexity int) int
		Description func(childComplexity int) int
	}

	Mutation struct {
		ChangeAddonStatus    func(childComplexity int, selector *model.MeshType, targetStatus model.Status) int
		ChangeOperatorStatus func(childComplexity int, targetStatus model.Status) int
	}

	NameSpace struct {
		Namespace func(childComplexity int) int
	}

	OperatorControllerStatus struct {
		Error   func(childComplexity int) int
		Name    func(childComplexity int) int
		Status  func(childComplexity int) int
		Version func(childComplexity int) int
	}

	OperatorStatus struct {
		Controllers func(childComplexity int) int
		Error       func(childComplexity int) int
		Status      func(childComplexity int) int
		Version     func(childComplexity int) int
	}

	Query struct {
		GetAvailableAddons     func(childComplexity int, selector *model.MeshType) int
		GetAvailableNamespaces func(childComplexity int) int
		GetControlPlanes       func(childComplexity int, filter *model.ControlPlaneFilter) int
		GetOperatorStatus      func(childComplexity int) int
	}

	Subscription struct {
		ListenToAddonState        func(childComplexity int, selector *model.MeshType) int
		ListenToControlPlaneState func(childComplexity int, filter *model.ControlPlaneFilter) int
		ListenToMeshSyncEvents    func(childComplexity int) int
		ListenToOperatorState     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 {
	ChangeAddonStatus(ctx context.Context, selector *model.MeshType, targetStatus model.Status) (model.Status, error)
	ChangeOperatorStatus(ctx context.Context, targetStatus model.Status) (model.Status, error)
}

type QueryResolver

type QueryResolver interface {
	GetAvailableAddons(ctx context.Context, selector *model.MeshType) ([]*model.AddonList, error)
	GetControlPlanes(ctx context.Context, filter *model.ControlPlaneFilter) ([]*model.ControlPlane, error)
	GetOperatorStatus(ctx context.Context) (*model.OperatorStatus, error)
	GetAvailableNamespaces(ctx context.Context) ([]*model.NameSpace, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
	Subscription() SubscriptionResolver
}

type SubscriptionResolver

type SubscriptionResolver interface {
	ListenToAddonState(ctx context.Context, selector *model.MeshType) (<-chan []*model.AddonList, error)
	ListenToControlPlaneState(ctx context.Context, filter *model.ControlPlaneFilter) (<-chan []*model.ControlPlane, error)
	ListenToOperatorState(ctx context.Context) (<-chan *model.OperatorStatus, error)
	ListenToMeshSyncEvents(ctx context.Context) (<-chan *model.OperatorControllerStatus, error)
}

Jump to

Keyboard shortcuts

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