Documentation ¶
Overview ¶
Modifies a data stream
Index ¶
- Variables
- type ModifyDataStream
- func (r ModifyDataStream) Do(ctx context.Context) (*http.Response, error)
- func (r *ModifyDataStream) Header(key, value string) *ModifyDataStream
- func (r *ModifyDataStream) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *ModifyDataStream) Raw(raw json.RawMessage) *ModifyDataStream
- func (r *ModifyDataStream) Request(req *Request) *ModifyDataStream
- type NewModifyDataStream
- type Request
- type RequestBuilder
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 ModifyDataStream ¶
type ModifyDataStream struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *ModifyDataStream
Modifies a data stream
https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html
func (*ModifyDataStream) Header ¶
func (r *ModifyDataStream) Header(key, value string) *ModifyDataStream
Header set a key, value pair in the ModifyDataStream headers map.
func (*ModifyDataStream) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*ModifyDataStream) Raw ¶
func (r *ModifyDataStream) Raw(raw json.RawMessage) *ModifyDataStream
Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.
func (*ModifyDataStream) Request ¶
func (r *ModifyDataStream) Request(req *Request) *ModifyDataStream
Request allows to set the request property with the appropriate payload.
type NewModifyDataStream ¶
type NewModifyDataStream func() *ModifyDataStream
NewModifyDataStream type alias for index.
func NewModifyDataStreamFunc ¶
func NewModifyDataStreamFunc(tp elastictransport.Interface) NewModifyDataStream
NewModifyDataStreamFunc returns a new instance of ModifyDataStream with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type RequestBuilder ¶
type RequestBuilder struct {
// contains filtered or unexported fields
}
RequestBuilder is the builder API for the modifydatastream.Request
func NewRequestBuilder ¶
func NewRequestBuilder() *RequestBuilder
NewRequest returns a RequestBuilder which can be chained and built to retrieve a RequestBuilder
func (*RequestBuilder) Actions ¶
func (rb *RequestBuilder) Actions(actions []types.ActionBuilder) *RequestBuilder
func (*RequestBuilder) Build ¶
func (rb *RequestBuilder) Build() *Request
Build finalize the chain and returns the Request struct.