Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoTLSConfig = errors.New("TLS config is not present")
Functions ¶
Types ¶
type ExporterConfig ¶
type ExporterConfig struct { Enabled bool `yaml:"enabled"` Address string `yaml:"address"` TLSConfig *TLSStruct `yaml:"tls_config"` }
ExporterConfig Exporterの設定
func (*ExporterConfig) ListenAddress ¶
func (c *ExporterConfig) ListenAddress() string
ListenAddress Addressが空の場合はデフォルト値(defaults.CoreExporterAddr)を、そうでなければAddressを返す
type TLSStruct ¶
type TLSStruct struct { TLSCertPath string `yaml:"cert_file"` TLSKeyPath string `yaml:"key_file"` ClientAuth string `yaml:"client_auth_type"` ClientCAs string `yaml:"client_ca_file"` // NoClientCert | RequestClientCert | RequireAnyClientCert | VerifyClientCertIfGiven | RequireAndVerifyClientCert RootCAs string `yaml:"root_ca_file"` }
func (*TLSStruct) SetDirectory ¶
func (*TLSStruct) TransportCredentials ¶
func (t *TLSStruct) TransportCredentials() (credentials.TransportCredentials, error)
Click to show internal directories.
Click to hide internal directories.