Documentation ¶
Index ¶
- func ErrorFromResponse(response *http.Response, errorResponse map[string]interface{}) error
- func ImportConsumerACL(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error)
- func ImportConsumerCredential(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error)
- func Provider() terraform.ResourceProvider
- type APICreateError
- type APIRequest
- type APIResponse
- type BasicAuthCredential
- type Config
- type Consumer
- type ConsumerACL
- type JWTCredential
- type KeyAuthCredential
- type KeyAuthPlugin
- type Plugin
- type UpdateAclRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorFromResponse ¶
func ImportConsumerACL ¶
func ImportConsumerACL(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error)
func ImportConsumerCredential ¶
func ImportConsumerCredential(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error)
func Provider ¶
func Provider() terraform.ResourceProvider
Provider returns a terraform.ResourceProvider.
Types ¶
type APICreateError ¶
type APICreateError struct { }
type APIRequest ¶
type APIRequest struct { ID string `json:"id,omitempty"` Name string `json:"name"` Hosts string `json:"hosts,omitempty"` Uris string `json:"uris,omitempty"` Methods string `json:"methods,omitempty"` UpstreamURL string `json:"upstream_url"` StripURI bool `json:"strip_uri"` PreserveHost bool `json:"preserve_host"` Retries int `json:"retries,omitempty"` UpstreamConnectTimeout int `json:"upstream_connect_timeout,omitempty"` UpstreamSendTimeout int `json:"upstream_send_timeout,omitempty"` UpstreamReadTimeout int `json:"upstream_read_timeout,omitempty"` HTTPSOnly bool `json:"https_only"` HTTPIfTerminated bool `json:"http_if_terminated"` }
APIRequest : Kong API request object structure
type APIResponse ¶
type APIResponse struct { ID string `json:"id,omitempty"` Name string `json:"name"` UpstreamURL string `json:"upstream_url"` StripURI bool `json:"strip_uri"` PreserveHost bool `json:"preserve_host"` Retries int `json:"retries,omitempty"` UpstreamConnectTimeout int `json:"upstream_connect_timeout,omitempty"` UpstreamSendTimeout int `json:"upstream_send_timeout,omitempty"` UpstreamReadTimeout int `json:"upstream_read_timeout,omitempty"` HTTPSOnly bool `json:"https_only"` HTTPIfTerminated bool `json:"http_if_terminated"` // These will be set in our UnmarshalJSON function. Hosts []string `json:"-"` Methods []string `json:"-"` Uris []string `json:"-"` }
APIResponse : Kong API response object structure
func (*APIResponse) UnmarshalJSON ¶
func (r *APIResponse) UnmarshalJSON(data []byte) error
type BasicAuthCredential ¶
type Config ¶
type ConsumerACL ¶
type JWTCredential ¶
type KeyAuthCredential ¶
type KeyAuthPlugin ¶
type KeyAuthPlugin struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` KeyNames string `json:"config.key_names,omitempty"` HideCredentials bool `json:"config.hide_credentials,omitempty"` Anonymous string `json:"config.anonymous,omitempty"` API string `json:"api_id,omitempty"` }
type Plugin ¶
type Plugin struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Configuration map[string]interface{} `json:"config,omitempty"` API string `json:"api_id,omitempty"` Consumer string `json:"consumer_id,omitempty"` Enabled bool `json:"enabled,omitempty"` }
Plugin : Kong API plugin request object structure
type UpdateAclRequest ¶
type UpdateAclRequest struct {
Group string `json:"group"`
}
Source Files ¶
- api_response.go
- config.go
- error_response.go
- import_consumer_acl.go
- import_consumer_credential.go
- resource_kong_api.go
- resource_kong_api_plugin.go
- resource_kong_consumer.go
- resource_kong_consumer_acl.go
- resource_kong_consumer_credential_basic_auth.go
- resource_kong_consumer_credential_jwt.go
- resource_kong_consumer_credential_key_auth.go
- resource_kong_key_auth_plugin.go
- resource_provider.go
Click to show internal directories.
Click to hide internal directories.