Documentation ¶
Overview ¶
Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot
Index ¶
- Variables
- type GetFeatures
- func (r GetFeatures) Do(ctx context.Context) (*Response, error)
- func (r *GetFeatures) Header(key, value string) *GetFeatures
- func (r *GetFeatures) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r GetFeatures) IsSuccess(ctx context.Context) (bool, error)
- func (r GetFeatures) Perform(ctx context.Context) (*http.Response, error)
- type NewGetFeatures
- 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 GetFeatures ¶
type GetFeatures struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetFeatures
Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot
https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html
func (GetFeatures) Do ¶
func (r GetFeatures) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a getfeatures.Response
func (*GetFeatures) Header ¶
func (r *GetFeatures) Header(key, value string) *GetFeatures
Header set a key, value pair in the GetFeatures headers map.
func (*GetFeatures) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewGetFeatures ¶
type NewGetFeatures func() *GetFeatures
NewGetFeatures type alias for index.
func NewGetFeaturesFunc ¶
func NewGetFeaturesFunc(tp elastictransport.Interface) NewGetFeatures
NewGetFeaturesFunc returns a new instance of GetFeatures with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.