apigateway

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiRuleUnstructuredExtractor

type ApiRuleUnstructuredExtractor struct{}

func (ApiRuleUnstructuredExtractor) Do

func (ext ApiRuleUnstructuredExtractor) Do(obj interface{}) (*v1alpha1.APIRule, error)

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

type Service struct {
	*resource.Service
	// contains filtered or unexported fields
}

func NewService

func NewService(serviceFactory *resource.ServiceFactory) *Service

func (*Service) Create

func (svc *Service) Create(apiRule *v1alpha1.APIRule) (*v1alpha1.APIRule, error)

func (*Service) Delete

func (svc *Service) Delete(name, namespace string) error

func (*Service) Find

func (svc *Service) Find(name, namespace string) (*v1alpha1.APIRule, error)

func (*Service) List

func (svc *Service) List(namespace string, serviceName *string, hostname *string) ([]*v1alpha1.APIRule, error)

func (*Service) Subscribe

func (svc *Service) Subscribe(listener notifierRes.Listener)

func (*Service) Unsubscribe

func (svc *Service) Unsubscribe(listener notifierRes.Listener)

func (*Service) Update

func (svc *Service) Update(apiRule *v1alpha1.APIRule) (*v1alpha1.APIRule, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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