generated

package
v0.5.40 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 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, input *model.AddonStatusInput) int
		ChangeOperatorStatus func(childComplexity int, input *model.OperatorStatusInput) 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
		ResyncCluster          func(childComplexity int, selector *model.ReSyncActions) 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, input *model.AddonStatusInput) (model.Status, error)
	ChangeOperatorStatus(ctx context.Context, input *model.OperatorStatusInput) (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)
	ResyncCluster(ctx context.Context, selector *model.ReSyncActions) (model.Status, 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