elasticsearchprobe

package
v5.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertPoolGetter added in v5.2.1

type CertPoolGetter interface {
	FromCustomCA(caCert []byte) *x509.CertPool
	SystemPool() (*x509.CertPool, error)
}

type DefaultCertPoolGetter added in v5.2.1

type DefaultCertPoolGetter struct{}

func (DefaultCertPoolGetter) FromCustomCA added in v5.2.1

func (DefaultCertPoolGetter) FromCustomCA(caCert []byte) *x509.CertPool

func (DefaultCertPoolGetter) SystemPool added in v5.2.1

func (DefaultCertPoolGetter) SystemPool() (*x509.CertPool, error)

type ElasticsearchProbe

type ElasticsearchProbe struct {
	// contains filtered or unexported fields
}

func NewElasticsearchProbe

func NewElasticsearchProbe(name, url string, opts ...ProbeOpts) ElasticsearchProbe

NewElasticsearchProbe instantiate a new elasticsearch probe: - name: probe name - url : connection string with the form "http://username:password@example.com" - opts: optionnal parameters such as providing a TLS CA certificate or allowing insecure connections

func (ElasticsearchProbe) Check

func (ElasticsearchProbe) Name

func (p ElasticsearchProbe) Name() string

type ProbeOpts

type ProbeOpts func(*ElasticsearchProbe)

func WithCA

func WithCA(caCert []byte) ProbeOpts

func WithInsecureSkipVerify

func WithInsecureSkipVerify() ProbeOpts

Directories

Path Synopsis
Package elasticsearchprobemock is a generated GoMock package.
Package elasticsearchprobemock is a generated GoMock package.

Jump to

Keyboard shortcuts

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