Documentation ¶
Overview ¶
Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.
Index ¶
- Variables
- type GetBuiltinPrivileges
- func (r GetBuiltinPrivileges) Do(providedCtx context.Context) (*Response, error)
- func (r *GetBuiltinPrivileges) Header(key, value string) *GetBuiltinPrivileges
- func (r *GetBuiltinPrivileges) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r GetBuiltinPrivileges) IsSuccess(providedCtx context.Context) (bool, error)
- func (r GetBuiltinPrivileges) Perform(providedCtx context.Context) (*http.Response, error)
- type NewGetBuiltinPrivileges
- 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 GetBuiltinPrivileges ¶
type GetBuiltinPrivileges struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetBuiltinPrivileges
Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.
func (GetBuiltinPrivileges) Do ¶
func (r GetBuiltinPrivileges) Do(providedCtx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a getbuiltinprivileges.Response
func (*GetBuiltinPrivileges) Header ¶
func (r *GetBuiltinPrivileges) Header(key, value string) *GetBuiltinPrivileges
Header set a key, value pair in the GetBuiltinPrivileges headers map.
func (*GetBuiltinPrivileges) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewGetBuiltinPrivileges ¶
type NewGetBuiltinPrivileges func() *GetBuiltinPrivileges
NewGetBuiltinPrivileges type alias for index.
func NewGetBuiltinPrivilegesFunc ¶
func NewGetBuiltinPrivilegesFunc(tp elastictransport.Interface) NewGetBuiltinPrivileges
NewGetBuiltinPrivilegesFunc returns a new instance of GetBuiltinPrivileges 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
Response holds the response body struct for the package getbuiltinprivileges