apisix

package
v0.0.0-...-e5a9b8e Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Route *RouteClient
	// contains filtered or unexported fields
}

func NewCluster

func NewCluster(baseURL string, adminKey string) *Cluster

func (*Cluster) Delete

func (c *Cluster) Delete(url, resource string) error

func (*Cluster) Put

func (c *Cluster) Put(url, resource string, data map[string]interface{}) error

type RouteClient

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

func NewRouteClient

func NewRouteClient(c *Cluster) *RouteClient

func (*RouteClient) Delete

func (r *RouteClient) Delete(id string) error

Delete 删除路由

func (*RouteClient) Put

func (r *RouteClient) Put(id string, data map[string]interface{}) error

Put 创建或更新路由

type SSLClient

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

func NewSSLClient

func NewSSLClient(c *Cluster) *SSLClient

func (*SSLClient) Delete

func (s *SSLClient) Delete(id string) error

Delete delete ssl

func (*SSLClient) Put

func (s *SSLClient) Put(id string, data map[string]interface{}) error

Put create or update ssl

Jump to

Keyboard shortcuts

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