gateway_client

package
v0.6.1-nightly.6f5f1c5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MPL-2.0 Imports: 8 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(ctx context.Context) ([]v1.APIDefinitionSpec, error)

func (Api) Create

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

func (Api) Delete

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

func (Api) Get

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

func (Api) Update

func (a Api) Update(ctx context.Context, 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) SecurityPolicy

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

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 (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