Documentation ¶
Index ¶
- type ApiRuleUnstructuredExtractor
- type PluggableResolver
- type Resolver
- type Service
- func (svc *Service) Create(apiRule *v1alpha1.APIRule) (*v1alpha1.APIRule, error)
- func (svc *Service) Delete(name, namespace string) error
- func (svc *Service) Find(name, namespace string) (*v1alpha1.APIRule, error)
- func (svc *Service) List(namespace string, serviceName *string, hostname *string) ([]*v1alpha1.APIRule, error)
- func (svc *Service) Subscribe(listener notifierRes.Listener)
- func (svc *Service) Unsubscribe(listener notifierRes.Listener)
- func (svc *Service) Update(apiRule *v1alpha1.APIRule) (*v1alpha1.APIRule, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiRuleUnstructuredExtractor ¶
type ApiRuleUnstructuredExtractor struct{}
type PluggableResolver ¶
type PluggableResolver struct { *module.Pluggable Resolver // contains filtered or unexported fields }
func New ¶
func New(serviceFactory *resource.ServiceFactory) (*PluggableResolver, error)
func (*PluggableResolver) Disable ¶
func (r *PluggableResolver) Disable() error
func (*PluggableResolver) Enable ¶
func (r *PluggableResolver) Enable() error
type Resolver ¶
type Resolver interface { APIRulesQuery(ctx context.Context, namespace string, serviceName *string, hostname *string) ([]gqlschema.APIRule, error) APIRuleQuery(ctx context.Context, name string, namespace string) (*gqlschema.APIRule, error) CreateAPIRule(ctx context.Context, name string, namespace string, params gqlschema.APIRuleInput) (*gqlschema.APIRule, error) UpdateAPIRule(ctx context.Context, name string, namespace string, params gqlschema.APIRuleInput) (*gqlschema.APIRule, error) DeleteAPIRule(ctx context.Context, name string, namespace string) (*gqlschema.APIRule, error) APIRuleEventSubscription(ctx context.Context, namespace string, serviceName *string) (<-chan gqlschema.ApiRuleEvent, error) }
type Service ¶
func NewService ¶
func NewService(serviceFactory *resource.ServiceFactory) *Service
func (*Service) Subscribe ¶
func (svc *Service) Subscribe(listener notifierRes.Listener)
func (*Service) Unsubscribe ¶
func (svc *Service) Unsubscribe(listener notifierRes.Listener)
Click to show internal directories.
Click to hide internal directories.