deleteuser

package
v8.8.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Overview

Deletes users from the native realm.

Index

Constants

This section is empty.

Variables

View Source
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 DeleteUser

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

func (DeleteUser) Do

func (r DeleteUser) Do(ctx context.Context) (*Response, error)

Do runs the request through the transport, handle the response and returns a deleteuser.Response

func (*DeleteUser) Header

func (r *DeleteUser) Header(key, value string) *DeleteUser

Header set a key, value pair in the DeleteUser headers map.

func (*DeleteUser) HttpRequest

func (r *DeleteUser) HttpRequest(ctx context.Context) (*http.Request, error)

HttpRequest returns the http.Request object built from the given parameters.

func (DeleteUser) IsSuccess

func (r DeleteUser) IsSuccess(ctx context.Context) (bool, error)

IsSuccess allows to run a query with a context and retrieve the result as a boolean. This only exists for endpoints without a request payload and allows for quick control flow.

func (DeleteUser) Perform added in v8.7.0

func (r DeleteUser) Perform(ctx context.Context) (*http.Response, error)

Perform runs the http.Request through the provided transport and returns an http.Response.

func (*DeleteUser) Refresh

func (r *DeleteUser) Refresh(enum refresh.Refresh) *DeleteUser

Refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. API name: refresh

func (*DeleteUser) Username

func (r *DeleteUser) Username(v string) *DeleteUser

Username username API Name: username

type NewDeleteUser

type NewDeleteUser func(username string) *DeleteUser

NewDeleteUser type alias for index.

func NewDeleteUserFunc

func NewDeleteUserFunc(tp elastictransport.Interface) NewDeleteUser

NewDeleteUserFunc returns a new instance of DeleteUser 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 struct {
	Found bool `json:"found"`
}

func NewResponse added in v8.7.0

func NewResponse() *Response

NewResponse returns a Response

Jump to

Keyboard shortcuts

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