Documentation ¶
Index ¶
- Constants
- Variables
- func ErrAddonSubscription(err error) error
- func ErrControlPlaneSubscription(err error) error
- func ErrCreateData(err error) error
- func ErrDeleteData(err error) error
- func ErrMesheryClient(err error) error
- func ErrMeshsyncSubscription(err error) error
- func ErrOperatorSubscription(err error) error
- func ErrQuery(err error) error
- func ErrSubscribeChannel(err error) error
- func ErrUpdateData(err error) error
- type Resolver
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 ErrCreateData ¶
func ErrDeleteData ¶
func ErrMesheryClient ¶
func ErrMeshsyncSubscription ¶
func ErrOperatorSubscription ¶
func ErrSubscribeChannel ¶
func ErrUpdateData ¶
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.
Click to show internal directories.
Click to hide internal directories.