Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic servers support #142

Merged
merged 20 commits into from
Jan 29, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
set options during pool creation
  • Loading branch information
asobrien committed Jan 9, 2020
commit 2c6d11acaffd2886e1e34ba63ec85718e5760f66
22 changes: 22 additions & 0 deletions fastly/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,29 @@ type CreatePoolInput struct {
Service string
Version int

// Name of the pool (required).
Name string `form:"name"`

Comment string `form:"comment,omitempty"`
Shield string `form:"shield,omitempty"`
RequestCondition string `form:"request_condition,omitempty"`
MaxConnDefault uint `form:"max_conn_default,omitempty"`
ConnectTimeout uint `form:"connect_timeout,omitempty"`
FirstByteTimeout uint `form:"first_byte_timeout,omitempty"`
Quorum uint `form:"quorum,omitempty"`
UseTLS bool `form:"use_tls,omitempty"`
TLSCACert string `form:"tls_ca_cert,omitempty"`
TLSCiphers string `form:"tls_ciphers,omitempty"`
TLSClientKey string `form:"tls_client_key,omitempty"`
TLSClientCert string `form:"tls_client_cert,omitempty"`
TLSSNIHostname string `form:"tls_sni_hostname,omitempty"`
TLSCheckCert bool `form:"tls_check_cert,omitempty"`
TLSCertHostname string `form:"tls_cert_hostname,omitempty"`
MinTLSVersion string `form:"min_tls_version,omitempty"`
MaxTLSVersion string `form:"max_tls_version,omitempty"`
Healthcheck string `form:"healthcheck,omitempty"`
Type PoolType `form:"type,omitempty"`
OverrideHost string `form:"override_host,omitempty"`
}

// CreatePool creates a pool for a particular service and version.
Expand Down