apicontroller

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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