gateway_client

package
v0.6.1-nightly.564d745 Latest Latest
Warning

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

Go to latest
Published: May 6, 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 {
	*Client
}

func (Api) All

func (a Api) All() ([]v1.APIDefinitionSpec, error)

func (Api) Create

func (a Api) Create(def *v1.APIDefinitionSpec) error

func (Api) Delete

func (a Api) Delete(id string) error

func (Api) Get

func (a Api) Get(apiID string) (*v1.APIDefinitionSpec, error)

func (Api) Update

func (a Api) Update(def *v1.APIDefinitionSpec) error

type Client

type Client struct {
	universal_client.Client
}

func NewClient

func NewClient(log logr.Logger, env environmet.Env) *Client

func (*Client) Api

func (*Client) Certificate

func (c *Client) Certificate() universal_client.UniversalCertificate

TODO: Certificate Requires implementation

func (*Client) HotReload

func (c *Client) HotReload() error

func (*Client) Organization

func (c *Client) Organization() universal_client.UniversalOrganization

TODO: Organization requires implementation

func (*Client) SecurityPolicy

func (c *Client) SecurityPolicy() universal_client.UniversalSecurityPolicy

func (*Client) Webhook

TODO: Webhook Requires implementation

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_client.ErrTODO on all methods.

func (SecurityPolicy) All

func (SecurityPolicy) Create

func (a SecurityPolicy) Create(def *v1.SecurityPolicySpec) error

func (SecurityPolicy) Delete

func (a SecurityPolicy) Delete(namespacedName string) error

func (SecurityPolicy) Get

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

func (SecurityPolicy) Update

func (a SecurityPolicy) Update(def *v1.SecurityPolicySpec) error

Jump to

Keyboard shortcuts

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