Documentation ¶
Index ¶
- Variables
- type APIResponse
- type APISResponse
- type Client
- func (c *Client) CreateAPI(def *objects.DBApiDefinition) (string, error)
- func (c *Client) CreateCertificate(cert []byte) (string, error)
- func (c *Client) CreatePolicy(pol *objects.Policy) (string, error)
- func (c *Client) DeleteAPI(id string) error
- func (c *Client) DeletePolicy(id string) error
- func (c *Client) FetchAPI(apiID string) (objects.DBApiDefinition, error)
- func (c *Client) FetchAPIs() ([]objects.DBApiDefinition, error)
- func (c *Client) FetchPolicies() ([]objects.Policy, error)
- func (c *Client) FetchPolicy(id string) (*objects.Policy, error)
- func (c *Client) GetActiveID(def *objects.DBApiDefinition) string
- func (c *Client) SetInsecureTLS(val bool)
- func (c *Client) Sync(apiDefs []objects.DBApiDefinition) error
- func (c *Client) SyncPolicies(pols []objects.Policy) error
- func (c *Client) UpdateAPI(def *objects.DBApiDefinition) error
- func (c *Client) UpdatePolicy(pol *objects.Policy) error
- type PoliciesData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UseUpdateError error = errors.New("Object seems to exist (same ID, API ID, Listen Path or Slug), use update()") UsePolUpdateError error = errors.New("Object seems to exist (same ID, Explicit ID), use update()") UseCreateError error = errors.New("Object does not exist, use create()") )
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APISResponse ¶
type APISResponse struct { Apis []objects.DBApiDefinition `json:"apis"` Pages int `json:"pages"` }
type Client ¶
type Client struct { InsecureSkipVerify bool OrgID string // contains filtered or unexported fields }
func NewDashboardClient ¶
func (*Client) DeletePolicy ¶
func (*Client) FetchAPI ¶ added in v1.2.0
func (c *Client) FetchAPI(apiID string) (objects.DBApiDefinition, error)
func (*Client) GetActiveID ¶
func (c *Client) GetActiveID(def *objects.DBApiDefinition) string
func (*Client) SetInsecureTLS ¶
type PoliciesData ¶
Click to show internal directories.
Click to hide internal directories.