Documentation ¶
Index ¶
- func NewEventHandler(channel chan<- *gqlschema.APIRuleEvent, filter func(v1alpha1.APIRule) bool) resource.EventHandlerProvider
- func NewService(serviceFactory *resource.GenericServiceFactory) (*resource.GenericService, error)
- type APIRuleList
- type EventHandler
- type Resolver
- func (r *Resolver) APIRuleEventSubscription(ctx context.Context, namespace string, serviceName *string) (<-chan *gqlschema.APIRuleEvent, error)
- func (r *Resolver) APIRuleQuery(ctx context.Context, name string, namespace string) (*v1alpha1.APIRule, error)
- func (r *Resolver) APIRulesQuery(ctx context.Context, namespace string, serviceName *string, hostname *string) ([]*v1alpha1.APIRule, error)
- func (r *Resolver) CreateAPIRule(ctx context.Context, name string, namespace string, ...) (*v1alpha1.APIRule, error)
- func (r *Resolver) DeleteAPIRule(ctx context.Context, name string, namespace string) (*v1alpha1.APIRule, error)
- func (r *Resolver) GetOwnerSubscription(ctx context.Context, rule *v1alpha1.APIRule) *metav1.OwnerReference
- func (r *Resolver) JsonField(ctx context.Context, obj *v1alpha1.APIRule) (gqlschema.JSON, error)
- func (r *Resolver) Service() *resource.GenericService
- func (r *Resolver) UpdateAPIRule(ctx context.Context, name string, namespace string, generation int64, ...) (*v1alpha1.APIRule, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventHandler ¶
func NewEventHandler(channel chan<- *gqlschema.APIRuleEvent, filter func(v1alpha1.APIRule) bool) resource.EventHandlerProvider
func NewService ¶
func NewService(serviceFactory *resource.GenericServiceFactory) (*resource.GenericService, error)
Types ¶
type APIRuleList ¶
func (*APIRuleList) Append ¶
func (l *APIRuleList) Append() interface{}
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func (*EventHandler) K8sResource ¶
func (h *EventHandler) K8sResource() interface{}
func (*EventHandler) Notify ¶
func (h *EventHandler) Notify(eventType gqlschema.SubscriptionEventType)
func (*EventHandler) ShouldNotify ¶
func (h *EventHandler) ShouldNotify() bool
type Resolver ¶
func New ¶
func New(factory *resource.GenericServiceFactory) *Resolver
func (*Resolver) APIRuleEventSubscription ¶
func (*Resolver) APIRuleQuery ¶
func (*Resolver) APIRulesQuery ¶
func (*Resolver) CreateAPIRule ¶
func (*Resolver) DeleteAPIRule ¶
func (*Resolver) GetOwnerSubscription ¶
func (*Resolver) Service ¶
func (r *Resolver) Service() *resource.GenericService
Click to show internal directories.
Click to hide internal directories.