Documentation ¶
Overview ¶
Retrieves information about the status of the basic license.
Index ¶
- Variables
- type GetBasicStatus
- func (r GetBasicStatus) Do(ctx context.Context) (*Response, error)
- func (r *GetBasicStatus) Header(key, value string) *GetBasicStatus
- func (r *GetBasicStatus) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r GetBasicStatus) IsSuccess(ctx context.Context) (bool, error)
- func (r GetBasicStatus) Perform(ctx context.Context) (*http.Response, error)
- type NewGetBasicStatus
- 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 GetBasicStatus ¶
type GetBasicStatus struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetBasicStatus
Retrieves information about the status of the basic license.
https://www.elastic.co/guide/en/elasticsearch/reference/master/get-basic-status.html
func (GetBasicStatus) Do ¶
func (r GetBasicStatus) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a getbasicstatus.Response
func (*GetBasicStatus) Header ¶
func (r *GetBasicStatus) Header(key, value string) *GetBasicStatus
Header set a key, value pair in the GetBasicStatus headers map.
func (*GetBasicStatus) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewGetBasicStatus ¶
type NewGetBasicStatus func() *GetBasicStatus
NewGetBasicStatus type alias for index.
func NewGetBasicStatusFunc ¶
func NewGetBasicStatusFunc(tp elastictransport.Interface) NewGetBasicStatus
NewGetBasicStatusFunc returns a new instance of GetBasicStatus with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.