gateway

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MPL-2.0 Imports: 11 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 Cert added in v0.11.0

type Cert struct{}

func (Cert) All added in v0.11.0

func (c Cert) All(ctx context.Context) ([]string, error)

All returns a list of all certificates ID's

func (Cert) Delete added in v0.11.0

func (c Cert) Delete(ctx context.Context, id string) error

func (Cert) Exists added in v0.11.0

func (c Cert) Exists(ctx context.Context, id string) bool

func (Cert) Upload added in v0.11.0

func (c Cert) Upload(ctx context.Context, key, crt []byte) (id string, err error)

type CertResponse added in v0.11.0

type CertResponse struct {
	Id      string `json:"id"`
	Message string `json:"message"`
	Status  string `json:"status"`
}

type CertificateList added in v0.11.0

type CertificateList struct {
	CertIDs []string `json:"certs"`
}

type Client

type Client struct{}

func (Client) Api

func (c Client) Api() universal.Api

func (Client) Certificate

func (c Client) Certificate() universal.Certificate

func (Client) HotReload

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

func (Client) Portal

func (c Client) Portal() universal.Portal

type Configuration

type Configuration struct{}

func (Configuration) Create

func (Configuration) Get

func (Configuration) Update

type Documentation

type Documentation struct{}

func (Documentation) Delete

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

func (Documentation) Upload

type PoliciesResponse added in v0.13.0

type PoliciesResponse struct {
	Policies []v1.SecurityPolicySpec `json:"data"`
	Pages    int                     `json:"pages"`
}

type Portal

type Portal struct{}

func (Portal) Catalogue

func (Portal) Catalogue() universal.Catalogue

func (Portal) Configuration

func (Portal) Configuration() universal.Configuration

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

func (SecurityPolicy) All

func (SecurityPolicy) Create

func (SecurityPolicy) Delete

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

func (SecurityPolicy) Get

func (SecurityPolicy) Update

Jump to

Keyboard shortcuts

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