Documentation ¶
Index ¶
- Variables
- func ImportConsumerCredential(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error)
- func Provider() *schema.Provider
- type ActiveHealthy
- type ActiveUnhealthy
- type BasicAuthCredential
- type CACertificate
- type Certificate
- type Config
- type Consumer
- type ConsumerACLGroup
- type HealthChecksActive
- type HealthChecksPassive
- type JWTCredential
- type KeyAuthCredential
- type PassiveHealthy
- type PassiveUnhealthy
- type Plugin
- type Route
- type SNI
- type Service
- type Target
- type Upstream
- type UpstreamHealthChecks
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HealthchecksTypes = []string{"http", "tcp", "https"}
)
Functions ¶
func ImportConsumerCredential ¶
func ImportConsumerCredential(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error)
Types ¶
type ActiveHealthy ¶
type ActiveUnhealthy ¶
type BasicAuthCredential ¶
type CACertificate ¶
type Certificate ¶
type ConsumerACLGroup ¶
type HealthChecksActive ¶
type HealthChecksActive struct { HttpsVerifyCertificate bool `json:"https_verify_certificate"` HttpPath string `json:"http_path,omitempty"` Timeout int `json:"timeout,omitempty"` HttpsSni *string `json:"https_sni,omitempty"` Concurrency int `json:"concurrency,omitempty"` Type string `json:"type,omitempty"` Healthy *ActiveHealthy `json:"healthy,omitempty"` Unhealthy *ActiveUnhealthy `json:"unhealthy,omitempty"` }
type HealthChecksPassive ¶
type HealthChecksPassive struct { Type string `json:"type,omitempty"` Healthy *PassiveHealthy `json:"healthy,omitempty"` Unhealthy *PassiveUnhealthy `json:"unhealthy,omitempty"` }
type JWTCredential ¶
type KeyAuthCredential ¶
type PassiveHealthy ¶
type PassiveUnhealthy ¶
type Plugin ¶
type Plugin struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Configuration map[string]interface{} `json:"config,omitempty"` Protocols []string `json:"protocols,omitempty"` Service map[string]string `json:"service,omitempty"` Route map[string]string `json:"route,omitempty"` Consumer map[string]string `json:"consumer,omitempty"` Tags []string `json:"tags"` Enabled bool `json:"enabled"` }
Plugin : Kong Service/API plugin request object structure
type Route ¶
type Route struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Protocols []string `json:"protocols"` Methods []string `json:"methods"` Hosts []string `json:"hosts"` Paths []string `json:"paths"` Headers map[string][]string `json:"headers"` HttpsRedirectStatusCode int `json:"https_redirect_status_code,omitempty"` RegexPriority int `json:"regex_priority"` StripPath bool `json:"strip_path,omitempty"` PathHandling string `json:"path_handling,omitempty"` PreserveHost bool `json:"preserve_host,omitempty"` RequestBuffering bool `json:"request_buffering"` ResponseBuffering bool `json:"response_buffering"` SNIs []string `json:"snis,omitempty"` // Sources []string `json:"sources,omitempty"` // Destinations []string `json:"destinations,omitempty"` Tags []string `json:"tags"` Service Service `json:"service,omitempty"` }
Route : Kong Route request object structure
type SNI ¶
type SNI struct { Name string `json:"name,omitempty"` SSLCertificateID Certificate `json:"certificate,omitempty"` Tags []string `json:"tags"` }
type Service ¶
type Service struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Retries int `json:"retries,omitempty"` Protocol string `json:"protocol,omitempty"` Host string `json:"host,omitempty"` Port int `json:"port,omitempty"` Path string `json:"path,omitempty"` ConnectTimeout int `json:"connect_timeout,omitempty"` WriteTimeout int `json:"write_timeout,omitempty"` ReadTimeout int `json:"read_timeout,omitempty"` Tags []string `json:"tags"` ClientCertificate Certificate `json:"-"` // TO DO: add if statement which assign value only if Protocol is HTTPS TlsVerify bool `json:"tls_verify,omitempty"` // TlsVerifyDepth int `json:"tls_verify_depth,omitempty"` // CACertificates []string `json:"-"` // Enabled bool `json:"enabled"` }
Service : Kong Service request object structure
type Upstream ¶
type Upstream struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Algorithm string `json:"algorithm,omitempty"` HashOn string `json:"hash_on"` HashFallback string `json:"hash_fallback"` HashOnHeader string `json:"hash_on_header,omitempty"` HashFallbackHeader string `json:"hash_fallback_header,omitempty"` HashOnCookie string `json:"hash_on_cookie,omitempty"` HashOnCookiePath string `json:"hash_on_cookie_path,omitempty"` HashOnQueryArg string `json:"hash_on_query_arg,omitempty"` HashFallbackOnQueryArg string `json:"hash_fallback_query_arg,omitempty"` HashOnUriCapture string `json:"hash_on_uri_capture,omitempty"` HashFallbacOnUriCapture string `json:"hash_fallback_uri_capture,omitempty"` Slots int `json:"slots,omitempty"` HealthChecks *UpstreamHealthChecks `json:"healthchecks,omitempty"` Tags []string `json:"tags"` HostHeader string `json:"host_header,omitempty"` ClientCertificate Certificate `json:"-"` UseSrvName bool `json:"use_srv_name"` }
type UpstreamHealthChecks ¶
type UpstreamHealthChecks struct { Active *HealthChecksActive `json:"active,omitempty"` Passive *HealthChecksPassive `json:"passive,omitempty"` }
Source Files ¶
- config.go
- import_consumer_credential.go
- resource_kong_ca_certificate.go
- resource_kong_certificate.go
- resource_kong_consumer.go
- resource_kong_consumer_acl_group.go
- resource_kong_consumer_credential_basic_auth.go
- resource_kong_consumer_credential_jwt.go
- resource_kong_consumer_credential_key_auth.go
- resource_kong_plugin.go
- resource_kong_route.go
- resource_kong_service.go
- resource_kong_sni.go
- resource_kong_target.go
- resource_kong_upstream.go
- resource_provider.go
Click to show internal directories.
Click to hide internal directories.