Documentation
¶
Index ¶
- Variables
- type APIMessage
- type APISList
- type Client
- func (c *Client) CreateAPIs(apiDefs *[]objects.DBApiDefinition) error
- func (c *Client) CreateCertificate(cert []byte) (string, error)
- func (c *Client) DeleteAPI(id string) error
- func (c *Client) FetchAPIs() ([]objects.DBApiDefinition, error)
- func (c *Client) GetActiveID(def *objects.DBApiDefinition) string
- func (c *Client) Reload() error
- func (c *Client) SetInsecureTLS(val bool)
- func (c *Client) SyncAPIs(apiDefs []objects.DBApiDefinition) error
- func (c *Client) UpdateAPIs(apiDefs *[]objects.DBApiDefinition) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type APIMessage ¶
type APISList ¶
type APISList []objects.APIDefinition
type Client ¶
type Client struct {
// InsecureSkipVerify is a flag that specifies if we should validate the
// server's TLS certificate.
InsecureSkipVerify bool
// Skip creating APIs if they already exist
SkipExisting bool
// contains filtered or unexported fields
}
func NewGatewayClient ¶
func (*Client) CreateAPIs ¶
func (c *Client) CreateAPIs(apiDefs *[]objects.DBApiDefinition) error
func (*Client) GetActiveID ¶
func (c *Client) GetActiveID(def *objects.DBApiDefinition) string
func (*Client) SetInsecureTLS ¶
func (*Client) UpdateAPIs ¶
func (c *Client) UpdateAPIs(apiDefs *[]objects.DBApiDefinition) error
Click to show internal directories.
Click to hide internal directories.