Documentation ¶
Overview ¶
Retrieves information about the X.509 certificates used to encrypt communications in the cluster.
Index ¶
- Variables
- type Certificates
- func (r Certificates) Do(ctx context.Context) (Response, error)
- func (r *Certificates) Header(key, value string) *Certificates
- func (r *Certificates) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r Certificates) IsSuccess(ctx context.Context) (bool, error)
- func (r Certificates) Perform(ctx context.Context) (*http.Response, error)
- type NewCertificates
- type Response
Constants ¶
This section is empty.
Variables ¶
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")
ErrBuildPath is returned in case of missing parameters within the build of the request.
Functions ¶
This section is empty.
Types ¶
type Certificates ¶
type Certificates struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *Certificates
Retrieves information about the X.509 certificates used to encrypt communications in the cluster.
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html
func (Certificates) Do ¶
func (r Certificates) Do(ctx context.Context) (Response, error)
Do runs the request through the transport, handle the response and returns a certificates.Response
func (*Certificates) Header ¶
func (r *Certificates) Header(key, value string) *Certificates
Header set a key, value pair in the Certificates headers map.
func (*Certificates) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewCertificates ¶
type NewCertificates func() *Certificates
NewCertificates type alias for index.
func NewCertificatesFunc ¶
func NewCertificatesFunc(tp elastictransport.Interface) NewCertificates
NewCertificatesFunc returns a new instance of Certificates with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type Response ¶ added in v8.7.0
type Response []types.CertificateInformation