gateway

package
v0.6.1-nightly.9f27c62 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct{}

func (Api) Create

func (a Api) Create(ctx context.Context, def *model.APIDefinitionSpec) (*model.Result, error)

func (Api) Delete

func (a Api) Delete(ctx context.Context, id string) (*model.Result, error)

func (Api) Get

func (a Api) Get(ctx context.Context, apiID string) (*model.APIDefinitionSpec, error)

func (Api) List

func (Api) Update

func (a Api) Update(ctx context.Context, def *model.APIDefinitionSpec) (*model.Result, error)

type Catalogue

type Catalogue struct{}

func (Catalogue) Create

func (Catalogue) Get

func (Catalogue) Update

type Client

type Client struct{}

func (Client) Api

func (c Client) Api() universal.Api

func (Client) Certificate

func (c Client) Certificate() universal.Certificate

TODO: Certificate Requires implementation

func (Client) HotReload

func (c Client) HotReload(ctx context.Context) error

func (Client) Portal

func (c Client) Portal() universal.Portal

type Documentation

type Documentation struct{}

func (Documentation) Delete

func (Documentation) Delete(ctx context.Context, id string) (*model.Result, error)

func (Documentation) Upload

type Portal

type Portal struct{}

func (Portal) Catalogue

func (Portal) Catalogue() universal.Catalogue

func (Portal) Documentation

func (Portal) Documentation() universal.Documentation

func (Portal) Policy

func (Portal) Policy() universal.Policy

type ResponseMsg

type ResponseMsg struct {
	Key     string `json:"key"`
	Status  string `json:"status"`
	Action  string `json:"action"`
	Message string `json:"message"`
}

type SecurityPolicy

type SecurityPolicy struct{}

SecurityPolicy provides api for accessing policies on the tyk gateway NOTE: The gateway doesn't provide api for security policy so this is just a placeholder and does nothing except returning universal.ErrTODO on all methods.

func (SecurityPolicy) All

func (SecurityPolicy) Create

func (SecurityPolicy) Delete

func (a SecurityPolicy) Delete(ctx context.Context, namespacedName string) error

func (SecurityPolicy) Get

func (a SecurityPolicy) Get(ctx context.Context, namespacedName string) (*v1.SecurityPolicySpec, error)

func (SecurityPolicy) Update

Jump to

Keyboard shortcuts

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