Documentation ¶
Overview ¶
Returns available script types, languages and contexts
Index ¶
- Variables
- type GetScriptLanguages
- func (r GetScriptLanguages) Do(providedCtx context.Context) (*Response, error)
- func (r *GetScriptLanguages) Header(key, value string) *GetScriptLanguages
- func (r *GetScriptLanguages) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r GetScriptLanguages) IsSuccess(providedCtx context.Context) (bool, error)
- func (r GetScriptLanguages) Perform(providedCtx context.Context) (*http.Response, error)
- type NewGetScriptLanguages
- 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 GetScriptLanguages ¶
type GetScriptLanguages struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetScriptLanguages
Returns available script types, languages and contexts
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html
func (GetScriptLanguages) Do ¶
func (r GetScriptLanguages) Do(providedCtx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a getscriptlanguages.Response
func (*GetScriptLanguages) Header ¶
func (r *GetScriptLanguages) Header(key, value string) *GetScriptLanguages
Header set a key, value pair in the GetScriptLanguages headers map.
func (*GetScriptLanguages) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewGetScriptLanguages ¶
type NewGetScriptLanguages func() *GetScriptLanguages
NewGetScriptLanguages type alias for index.
func NewGetScriptLanguagesFunc ¶
func NewGetScriptLanguagesFunc(tp elastictransport.Interface) NewGetScriptLanguages
NewGetScriptLanguagesFunc returns a new instance of GetScriptLanguages 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 { LanguageContexts []types.LanguageContext `json:"language_contexts"` TypesAllowed []string `json:"types_allowed"` }
Response holds the response body struct for the package getscriptlanguages