generated

package
v0.5.0-rc-3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 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 {
	AddonConfig struct {
		Endpoint    func(childComplexity int) int
		ServiceName func(childComplexity int) int
	}

	AddonList struct {
		Config func(childComplexity int) int
		Status func(childComplexity int) int
		Type   func(childComplexity int) int
	}

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

	ControlPlaneMember struct {
		Component func(childComplexity int) int
		Namespace func(childComplexity int) int
		Status    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
	}

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

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

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

	Subscription struct {
		ListenToAddonEvents        func(childComplexity int, selector *model.MeshType) int
		ListenToControlPlaneEvents func(childComplexity int, filter *model.ControlPlaneFilter) int
		ListenToOperatorEvents     func(childComplexity int) int
		SubscribeToMeshSync        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)
}

type ResolverRoot

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

type SubscriptionResolver

type SubscriptionResolver interface {
	ListenToAddonEvents(ctx context.Context, selector *model.MeshType) (<-chan []*model.AddonList, error)
	ListenToControlPlaneEvents(ctx context.Context, filter *model.ControlPlaneFilter) (<-chan []*model.ControlPlane, error)
	ListenToOperatorEvents(ctx context.Context) (<-chan *model.OperatorStatus, error)
	SubscribeToMeshSync(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