config

package
v0.0.0-...-45400c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkerConfig

type BulkerConfig struct {
	BBSAddress                 string                        `json:"bbs_api_url"`
	BBSCACert                  string                        `json:"bbs_ca_cert"`
	BBSCancelTaskPoolSize      int                           `json:"bbs_cancel_task_pool_size"`
	BBSClientCert              string                        `json:"bbs_client_cert"`
	BBSClientConnectionPerHost int                           `json:"bbs_client_connection_per_host"`
	BBSClientKey               string                        `json:"bbs_client_key"`
	BBSClientSessionCacheSize  int                           `json:"bbs_client_cache_size"`
	BBSFailTaskPoolSize        int                           `json:"bbs_fail_task_pool_size"`
	BBSMaxIdleConnsPerHost     int                           `json:"bbs_max_idle_conns_per_host"`
	BBSUpdateLRPWorkers        int                           `json:"bbs_update_lrp_workers"`
	CCBaseUrl                  string                        `json:"cc_base_url"`
	CCBulkBatchSize            uint                          `json:"cc_bulk_batch_size"`
	CCPassword                 string                        `json:"cc_basic_auth_password"`
	CCPollingInterval          Duration                      `json:"cc_polling_interval"`
	CCUsername                 string                        `json:"cc_basic_auth_username"`
	CommunicationTimeout       Duration                      `json:"communication_timeout"`
	ConsulCluster              string                        `json:"consul_cluster"`
	DebugServerConfig          debugserver.DebugServerConfig `json:"debug_server_config"`
	DomainTTL                  Duration                      `json:"domain_ttl"`
	DropsondePort              int                           `json:"dropsonde_port"`
	FileServerUrl              string                        `json:"file_server_url"`
	LagerConfig                lagerflags.LagerConfig        `json:"lager_config"`
	LockRetryInterval          Duration                      `json:"lock_retry_interval"`
	LockTTL                    Duration                      `json:"lock_ttl"`
	Lifecycles                 []string                      `json:"lifecycle_bundles"`
	PrivilegedContainers       bool                          `json:"diego_privileged_containers"`
	SkipCertVerify             bool                          `json:"skip_cert_verify"`
}

func DefaultBulkerConfig

func DefaultBulkerConfig() BulkerConfig

func NewBulkerConfig

func NewBulkerConfig(configPath string) (BulkerConfig, error)

type Duration

type Duration time.Duration

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(data []byte) error

type ListenerConfig

type ListenerConfig struct {
	BBSAddress                string                        `json:"bbs_api_url"`
	BBSCACert                 string                        `json:"bbs_ca_cert"`
	BBSClientCert             string                        `json:"bbs_client_cert"`
	BBSClientKey              string                        `json:"bbs_client_key"`
	BBSClientSessionCacheSize int                           `json:"bbs_client_cache_size"`
	BBSMaxIdleConnsPerHost    int                           `json:"bbs_max_idle_conns_per_host"`
	CommunicationTimeout      Duration                      `json:"communication_timeout"`
	ConsulCluster             string                        `json:"consul_cluster"`
	DebugServerConfig         debugserver.DebugServerConfig `json:"debug_server_config"`
	DropsondePort             int                           `json:"dropsonde_port"`
	FileServerURL             string                        `json:"file_server_url"`
	Lifecycles                []string                      `json:"lifecycle_bundles"`
	ListenAddress             string                        `json:"nsync_listen_addr"`
	LagerConfig               lagerflags.LagerConfig        `json:"lager_config"`
	PrivilegedContainers      bool                          `json:"diego_privileged_containers"`
}

func DefaultListenerConfig

func DefaultListenerConfig() ListenerConfig

func NewListenerConfig

func NewListenerConfig(configPath string) (ListenerConfig, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL