client

package
v0.0.0-...-88829d4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayClient

type GatewayClient struct {
	// contains filtered or unexported fields
}

GatewayClient -

func NewGatewayClient

func NewGatewayClient(host, user, pass string) *GatewayClient

NewGatewayClient creates a client to connect to the layer7 gateway

func (*GatewayClient) GetActivePolicy

func (c *GatewayClient) GetActivePolicy(apiID string) (*policy.PolicyItem, error)

GetActivePolicy gets the active policy for a service

func (*GatewayClient) GetServices

func (c *GatewayClient) GetServices() (*service.ListServices, error)

GetServices gets a list of services from layer7

func (*GatewayClient) GetSpec

func (c *GatewayClient) GetSpec(host string) ([]byte, error)

GetSpec gets a spec from the provided host

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient an interface for the go HTTP Client

Jump to

Keyboard shortcuts

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