Skip to content

Instantly share code, notes, and snippets.

@JTarasovic
Created September 10, 2019 18:44
Show Gist options
  • Save JTarasovic/a3e9db802b9aead6af69abf274c75c82 to your computer and use it in GitHub Desktop.
Save JTarasovic/a3e9db802b9aead6af69abf274c75c82 to your computer and use it in GitHub Desktop.
etcd 3.3 -> 3.4
type Etcd3_3 struct { | type Etcd3_4 struct {
Name *string `yaml:"name" cli:" Name *string `yaml:"name"
DataDir *string `yaml:"data_dir" cli:" DataDir *string `yaml:"data_dir"
WalDir *string `yaml:"wal_dir" cli:" WalDir *string `yaml:"wal_dir"
SnapshotCount *int `yaml:"snapshot_count" cli:" SnapshotCount *int `yaml:"snapshot_count"
HeartbeatInterval *int `yaml:"heartbeat_interval" cli:" HeartbeatInterval *int `yaml:"heartbeat_interval"
ElectionTimeout *int `yaml:"election_timeout" cli:" ElectionTimeout *int `yaml:"election_timeout"
EnablePprof *bool `yaml:"enable_pprof" cli:" EnablePprof *bool `yaml:"enable_pprof"
EnableV2 *bool `yaml:"enable_v2" cli:" EnableV2 *bool `yaml:"enable_v2"
ListenPeerUrls *string `yaml:"listen_peer_urls" cli:" ListenPeerUrls *string `yaml:"listen_peer_urls"
ListenClientUrls *string `yaml:"listen_client_urls" cli:" ListenClientUrls *string `yaml:"listen_client_urls"
> ListenMetricUrls *string `yaml:"listen_metric_urls"
MaxSnapshots *int `yaml:"max_snapshots" cli:" MaxSnapshots *int `yaml:"max_snapshots"
MaxWals *int `yaml:"max_wals" cli:" MaxWals *int `yaml:"max_wals"
Cors *string `yaml:"cors" cli:" Cors *string `yaml:"cors"
QuotaBackendBytes *int `yaml:"quota_backend_bytes" cli:" QuotaBackendBytes *int `yaml:"quota_backend_bytes"
MaxTxnOps *int `yaml:"max_txn_ops" cli:" MaxTxnOps *int `yaml:"max_txn_ops"
MaxRequestBytes *int `yaml:"max_request_bytes" cli:" MaxRequestBytes *int `yaml:"max_request_bytes"
GrpcKeepaliveMinTime *string `yaml:"grpc_keepalive_min_time" cli:" GrpcKeepaliveMinTime *string `yaml:"grpc_keepalive_min_time"
GrpcKeepaliveInterval *string `yaml:"grpc_keepalive_interval" cli:" GrpcKeepaliveInterval *string `yaml:"grpc_keepalive_interval"
GrpcKeepaliveTimeout *string `yaml:"grpc_keepalive_timeout" cli:" GrpcKeepaliveTimeout *string `yaml:"grpc_keepalive_timeout"
InitialAdvertisePeerUrls *string `yaml:"initial_advertise_peer_urls" cli:" InitialAdvertisePeerUrls *string `yaml:"initial_advertise_peer_urls"
InitialCluster *string `yaml:"initial_cluster" cli:" InitialCluster *string `yaml:"initial_cluster"
InitialClusterState *string `yaml:"initial_cluster_state" cli:" InitialClusterState *string `yaml:"initial_cluster_state"
InitialClusterToken *string `yaml:"initial_cluster_token" cli:" InitialClusterToken *string `yaml:"initial_cluster_token"
AdvertiseClientUrls *string `yaml:"advertise_client_urls" cli:" AdvertiseClientUrls *string `yaml:"advertise_client_urls"
Discovery *string `yaml:"discovery" cli:" Discovery *string `yaml:"discovery"
DiscoverySrv *string `yaml:"discovery_srv" cli:" DiscoverySrv *string `yaml:"discovery_srv"
> DiscoverySrvName *string `yaml:"discovery_srv_name"
DiscoveryFallback *string `yaml:"discovery_fallback" cli:" DiscoveryFallback *string `yaml:"discovery_fallback"
DiscoveryProxy *string `yaml:"discovery_proxy" cli:" DiscoveryProxy *string `yaml:"discovery_proxy"
StrictReconfigCheck *bool `yaml:"strict_reconfig_check" cli:" StrictReconfigCheck *bool `yaml:"strict_reconfig_check"
AutoCompactionRetention *string `yaml:"auto_compaction_retention" cli:" AutoCompactionRetention *string `yaml:"auto_compaction_retention"
AutoCompactionMode *string `yaml:"auto_compaction_mode" cli:" AutoCompactionMode *string `yaml:"auto_compaction_mode"
Proxy *string `yaml:"proxy" cli:" Proxy *string `yaml:"proxy"
ProxyFailureWait *int `yaml:"proxy_failure_wait" cli:" ProxyFailureWait *int `yaml:"proxy_failure_wait"
ProxyRefreshInterval *int `yaml:"proxy_refresh_interval" cli:" ProxyRefreshInterval *int `yaml:"proxy_refresh_interval"
ProxyDialTimeout *int `yaml:"proxy_dial_timeout" cli:" ProxyDialTimeout *int `yaml:"proxy_dial_timeout"
ProxyWriteTimeout *int `yaml:"proxy_write_timeout" cli:" ProxyWriteTimeout *int `yaml:"proxy_write_timeout"
ProxyReadTimeout *int `yaml:"proxy_read_timeout" cli:" ProxyReadTimeout *int `yaml:"proxy_read_timeout"
CaFile *string `yaml:"ca_file" cli:" <
CertFile *string `yaml:"cert_file" cli:" CertFile *string `yaml:"cert_file"
KeyFile *string `yaml:"key_file" cli:" KeyFile *string `yaml:"key_file"
ClientCertAuth *bool `yaml:"client_cert_auth" cli:" ClientCertAuth *bool `yaml:"client_cert_auth"
ClientCrlFile *string `yaml:"client_crl_file" cli:" ClientCrlFile *string `yaml:"client_crl_file"
> ClientCertAllowedHostname *string `yaml:"client_cert_allowed_hostname"
TrustedCaFile *string `yaml:"trusted_ca_file" cli:" TrustedCaFile *string `yaml:"trusted_ca_file"
AutoTls *bool `yaml:"auto_tls" cli:" AutoTls *bool `yaml:"auto_tls"
PeerCaFile *string `yaml:"peer_ca_file" cli:" <
PeerCertFile *string `yaml:"peer_cert_file" cli:" PeerCertFile *string `yaml:"peer_cert_file"
PeerKeyFile *string `yaml:"peer_key_file" cli:" PeerKeyFile *string `yaml:"peer_key_file"
PeerClientCertAuth *bool `yaml:"peer_client_cert_auth" cli:" PeerClientCertAuth *bool `yaml:"peer_client_cert_auth"
PeerCrlFile *string `yaml:"peer_crl_file" cli:" PeerCrlFile *string `yaml:"peer_crl_file"
PeerTrustedCaFile *string `yaml:"peer_trusted_ca_file" cli:" PeerTrustedCaFile *string `yaml:"peer_trusted_ca_file"
PeerAutoTls *bool `yaml:"peer_auto_tls" cli:" PeerAutoTls *bool `yaml:"peer_auto_tls"
PeerCertAllowedCn *string `yaml:"peer_cert_allowed_cn" cli:" PeerCertAllowedCn *string `yaml:"peer_cert_allowed_cn"
> PeerCertAllowedHostname *string `yaml:"peer_cert_allowed_hostname"
> CipherSuites *string `yaml:"cipher_suites"
AuthToken *string `yaml:"auth_token" cli:" AuthToken *string `yaml:"auth_token"
Debug *bool `yaml:"debug" cli:" | BcryptCost *int `yaml:"bcrypt_cost"
LogPackageLevels *string `yaml:"log_package_levels" cli:" | Debug *bool `yaml:"debug"
> LogPackageLevels *string `yaml:"log_package_levels"
ForceNewCluster *bool `yaml:"force_new_cluster" cli:" ForceNewCluster *bool `yaml:"force_new_cluster"
Metrics *string `yaml:"metrics" cli:" Metrics *string `yaml:"metrics"
LogOutput *string `yaml:"log_output" cli:" | Logger *string `yaml:"logger"
> LogOutput *string `yaml:"log_output"
> LogOutputs *string `yaml:"log_outputs"
> LogLevel *string `yaml:"log_level"
ListenMetricsUrls *string `yaml:"listen_metrics_urls" cli:" ListenMetricsUrls *string `yaml:"listen_metrics_urls"
> PreVote *bool `yaml:"prevote"
> InitialElectionTickAdvance *bool `yaml:"initial_election_tick_advance"
> BackendBatchInterval *string `yaml:"backend_batch_interval"
> BackendBatchLimit *int `yaml:"backend_batch_limit"
> EnableGRPCGateway *bool `yaml:"enable_grpc_gateway"
> HostWhitelist *string `yaml:"host_whitelist"
> ConfigFile *string `yaml:"config_file"
ExperimentalInitialCorruptCheck *bool `yaml:"experimental_initial_corrupt_check" cli:" ExperimentalInitialCorruptCheck *bool `yaml:"experimental_initial_corrupt_check"
ExperimentalCorruptCheckTime *string `yaml:"experimental_corrupt_check_time" cli:" ExperimentalCorruptCheckTime *string `yaml:"experimental_corrupt_check_time"
ExperimentalEnableV2V3 *string `yaml:"experimental_enable_v2v3" cli:" ExperimentalEnableV2V3 *string `yaml:"experimental_enable_v2v3"
> ExperimentalPeerSkipClientSan *bool `yaml:"experimental_peer_skip_client_san_verif
> ExperimentalBackendFreelistType *string `yaml:"experimental_backend_bbolt_freelist-typ
> ExperimentalEnableLeaseCheckpoint *bool `yaml:"experimental_enable_lease_checkpoint"
> ExperimentalCompactionBatchLimit *int `yaml:"experimental_compaction_batch_limit"
} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment