resolver

package
v0.5.16 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidRequestCode           = "test_code"
	ErrNilClientCode                = "test_code"
	ErrCreateDataCode               = "test_code"
	ErrQueryCode                    = "test_code"
	ErrMeshsyncSubscriptionCode     = "test_code"
	ErrOperatorSubscriptionCode     = "test_code"
	ErrAddonSubscriptionCode        = "test_code"
	ErrControlPlaneSubscriptionCode = "test_code"
	ErrMesheryClientCode            = "test_code"
	ErrSubscribeChannelCode         = "test_code"
	ErrNoMeshSyncCode               = "test_code"
)

Variables

View Source
var (
	ErrNilClient      = errors.NewDefault(ErrNilClientCode, "Kubernetes client not initialized")
	ErrInvalidRequest = errors.NewDefault(ErrInvalidRequestCode, "Invalid query, please check syntax")
	ErrNoMeshSync     = errors.NewDefault(ErrNoMeshSyncCode, "MeshSync disabled")
	ErrEmptyHandler   = errors.NewDefault(ErrNoMeshSyncCode, "Database handler not initialized")
)

Functions

func ErrAddonSubscription

func ErrAddonSubscription(err error) error

func ErrControlPlaneSubscription

func ErrControlPlaneSubscription(err error) error

func ErrCreateData

func ErrCreateData(err error) error

func ErrDeleteData

func ErrDeleteData(err error) error

func ErrMesheryClient

func ErrMesheryClient(err error) error

func ErrMeshsyncSubscription

func ErrMeshsyncSubscription(err error) error

func ErrOperatorSubscription

func ErrOperatorSubscription(err error) error

func ErrQuery

func ErrQuery(err error) error

func ErrSubscribeChannel

func ErrSubscribeChannel(err error) error

func ErrUpdateData

func ErrUpdateData(err error) error

Types

type Resolver

type Resolver struct {
	Log             logger.Handler
	DBHandler       *database.Handler
	KubeClient      *mesherykube.Client
	MeshSyncChannel chan struct{}
	// contains filtered or unexported fields
}

func (*Resolver) Mutation

func (r *Resolver) Mutation() generated.MutationResolver

Mutation returns generated.MutationResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() generated.QueryResolver

Query returns generated.QueryResolver implementation.

func (*Resolver) Subscription

func (r *Resolver) Subscription() generated.SubscriptionResolver

Subscription returns generated.SubscriptionResolver implementation.

Jump to

Keyboard shortcuts

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