apigateway

package
v0.0.0-...-6f0f11f Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

type APIRuleList []*v1alpha1.APIRule

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

type Resolver struct {
	*resource.Module
}

func New

func (*Resolver) APIRuleEventSubscription

func (r *Resolver) APIRuleEventSubscription(ctx context.Context, namespace string, serviceName *string) (<-chan *gqlschema.APIRuleEvent, error)

func (*Resolver) APIRuleQuery

func (r *Resolver) APIRuleQuery(ctx context.Context, name string, namespace string) (*v1alpha1.APIRule, error)

func (*Resolver) APIRulesQuery

func (r *Resolver) APIRulesQuery(ctx context.Context, namespace string, serviceName *string, hostname *string) ([]*v1alpha1.APIRule, error)

func (*Resolver) CreateAPIRule

func (r *Resolver) CreateAPIRule(ctx context.Context, name string, namespace string, params v1alpha1.APIRuleSpec) (*v1alpha1.APIRule, error)

func (*Resolver) DeleteAPIRule

func (r *Resolver) DeleteAPIRule(ctx context.Context, name string, namespace string) (*v1alpha1.APIRule, error)

func (*Resolver) GetOwnerSubscription

func (r *Resolver) GetOwnerSubscription(ctx context.Context, rule *v1alpha1.APIRule) *metav1.OwnerReference

func (*Resolver) JsonField

func (r *Resolver) JsonField(ctx context.Context, obj *v1alpha1.APIRule) (gqlschema.JSON, error)

func (*Resolver) Service

func (r *Resolver) Service() *resource.GenericService

func (*Resolver) UpdateAPIRule

func (r *Resolver) UpdateAPIRule(ctx context.Context, name string, namespace string, generation int64, newSpec v1alpha1.APIRuleSpec) (*v1alpha1.APIRule, error)

type Service

type Service struct {
	*resource.Service
}

Jump to

Keyboard shortcuts

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