Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluggableResolver

type PluggableResolver struct {
	*module.Pluggable

	Resolver
	// contains filtered or unexported fields
}

func New

func New(restConfig *rest.Config, informerResyncPeriod time.Duration) (*PluggableResolver, error)

func (*PluggableResolver) Disable

func (r *PluggableResolver) Disable() error

func (*PluggableResolver) Enable

func (r *PluggableResolver) Enable() error

type Resolver

type Resolver interface {
	APIsQuery(ctx context.Context, namespace string, serviceName *string, hostname *string) ([]gqlschema.API, error)
	APIQuery(ctx context.Context, name string, namespace string) (*gqlschema.API, error)
	CreateAPI(ctx context.Context, name string, namespace string, params gqlschema.APIInput) (gqlschema.API, error)
	UpdateAPI(ctx context.Context, name string, namespace string, params gqlschema.APIInput) (gqlschema.API, error)
	DeleteAPI(ctx context.Context, name string, namespace string) (*gqlschema.API, error)
	APIEventSubscription(ctx context.Context, namespace string, serviceName *string) (<-chan gqlschema.ApiEvent, error)
}

go:generate failery -name=Resolver -case=underscore -output disabled -outpkg disabled