Documentation ¶
Index ¶
- type API
- type Client
- func (k *Client) AddAPI(ctx context.Context, entity *gateway.API) (*gateway.API, error)
- func (k *Client) DeleteAPI(ctx context.Context, api *gateway.API) error
- func (k *Client) GetAPI(ctx context.Context, name string) (*gateway.API, error)
- func (k *Client) UpdateAPI(ctx context.Context, name string, entity *gateway.API) (*gateway.API, error)
- type Config
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { // id and created_at is required to update an kong API ID string `json:"id,omitempty"` CreatedAt int `json:"created_at,omitempty"` Name string `json:"name"` UpstreamURL string `json:"upstream_url,omitempty"` URIs []string `json:"uris,omitempty"` Hosts []string `json:"hosts,omitempty"` Methods []string `json:"methods,omitempty"` HTTPSOnly bool `json:"https_only,omitempty"` }
API is a struct for Kong API
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a http client connecting to a Kong server
Click to show internal directories.
Click to hide internal directories.