Documentation ¶
Overview ¶
Retrieves information for one or more API keys.
Index ¶
- Variables
- type GetApiKey
- func (r GetApiKey) Do(ctx context.Context) (*Response, error)
- func (r *GetApiKey) Header(key, value string) *GetApiKey
- func (r *GetApiKey) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *GetApiKey) Id(v string) *GetApiKey
- func (r GetApiKey) IsSuccess(ctx context.Context) (bool, error)
- func (r *GetApiKey) Name(v string) *GetApiKey
- func (r *GetApiKey) Owner(b bool) *GetApiKey
- func (r GetApiKey) Perform(ctx context.Context) (*http.Response, error)
- func (r *GetApiKey) RealmName(v string) *GetApiKey
- func (r *GetApiKey) Username(v string) *GetApiKey
- func (r *GetApiKey) WithLimitedBy(b bool) *GetApiKey
- type NewGetApiKey
- 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 GetApiKey ¶
type GetApiKey struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetApiKey
Retrieves information for one or more API keys.
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html
func (GetApiKey) Do ¶
Do runs the request through the transport, handle the response and returns a getapikey.Response
func (*GetApiKey) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (GetApiKey) IsSuccess ¶
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 (*GetApiKey) Owner ¶
Owner flag to query API keys owned by the currently authenticated user API name: owner
func (GetApiKey) Perform ¶
Perform runs the http.Request through the provided transport and returns an http.Response.
func (*GetApiKey) RealmName ¶
RealmName realm name of the user who created this API key to be retrieved API name: realm_name
func (*GetApiKey) Username ¶
Username user name of the user who created this API key to be retrieved API name: username
func (*GetApiKey) WithLimitedBy ¶
WithLimitedBy Return the snapshot of the owner user's role descriptors associated with the API key. An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors. API name: with_limited_by
type NewGetApiKey ¶
type NewGetApiKey func() *GetApiKey
NewGetApiKey type alias for index.
func NewGetApiKeyFunc ¶
func NewGetApiKeyFunc(tp elastictransport.Interface) NewGetApiKey
NewGetApiKeyFunc returns a new instance of GetApiKey with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.