Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ LogLevel: "debug", Listen: ":8080", EnableServerTLS: false, Cert: "test/server.crt", Key: "test/server.key", CfAPI: "", BoshDirectorAPI: "", AgentPort: "9494", ClientCert: "test/client.crt", ClientCertKey: "test/client.key", AgentCa: "test/cacert.pem", AgentCommonName: "", AgentTlsSkipVerify: true, CLIDownloadRoot: "cli/build", }
Functions ¶
Types ¶
type BoshCaptureHandler ¶
type BoshCaptureHandler struct {
// contains filtered or unexported fields
}
func NewBoshCaptureHandler ¶
func NewBoshCaptureHandler(config *Config) *BoshCaptureHandler
type BoshInfo ¶
type BoshInfo struct {
Name string `json:"name"`
Uuid string `json:"uuid"`
Version string `json:"version"`
Cpi string `json:"cpi"`
StemcellOs string `json:"stemcell_os"`
StemcellVersion string `json:"stemcell_version"`
UserAuthentication struct {
Type string `json:"type"`
Options struct {
Url string `json:"url"`
Urls []string `json:"urls"`
} `json:"options"`
} `json:"user_authentication"`
}
type CfCaptureHandler ¶
type CfCaptureHandler struct {
// contains filtered or unexported fields
}
func NewCfCaptureHandler ¶
func NewCfCaptureHandler(config *Config) *CfCaptureHandler
type Config ¶
type Config struct {
LogLevel string `yaml:"log_level"`
Listen string `yaml:"listen"`
EnableServerTLS bool `yaml:"enable_server_tls"`
Cert string `yaml:"cert"`
Key string `yaml:"key"`
CfAPI string `yaml:"cf_api"`
BoshDirectorAPI string `yaml:"bosh_director_api"`
BoshDirectorCa string `yaml:"bosh_director_ca"`
AgentPort string `yaml:"agent_port"`
ClientCert string `yaml:"client_cert"`
ClientCertKey string `yaml:"client_key"`
AgentCa string `yaml:"agent_ca"`
AgentCommonName string `yaml:"agent_common_name"`
AgentTlsSkipVerify bool `yaml:"agent_tls_skip_verify"`
CLIDownloadRoot string `yaml:"cli_download_root"`
}
TODO: Consider splitting this into pcap-api, cf and bosh parts. cf and bosh could then be used to _not_ enable a specific capture endpoint when there's no configuration for it.
func NewConfigFromFile ¶
type PcapStreamer ¶
type PcapStreamer struct {
// contains filtered or unexported fields
}
func NewPcapStreamer ¶
func NewPcapStreamer(config *Config) *PcapStreamer
Click to show internal directories.
Click to hide internal directories.