Documentation ¶
Overview ¶
Creates a data stream
Index ¶
- Variables
- type CreateDataStream
- func (r CreateDataStream) Do(ctx context.Context) (*Response, error)
- func (r *CreateDataStream) Header(key, value string) *CreateDataStream
- func (r *CreateDataStream) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r CreateDataStream) IsSuccess(ctx context.Context) (bool, error)
- func (r CreateDataStream) Perform(ctx context.Context) (*http.Response, error)
- type NewCreateDataStream
- 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 CreateDataStream ¶
type CreateDataStream struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *CreateDataStream
Creates a data stream
https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html
func (CreateDataStream) Do ¶
func (r CreateDataStream) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a createdatastream.Response
func (*CreateDataStream) Header ¶
func (r *CreateDataStream) Header(key, value string) *CreateDataStream
Header set a key, value pair in the CreateDataStream headers map.
func (*CreateDataStream) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewCreateDataStream ¶
type NewCreateDataStream func(name string) *CreateDataStream
NewCreateDataStream type alias for index.
func NewCreateDataStreamFunc ¶
func NewCreateDataStreamFunc(tp elastictransport.Interface) NewCreateDataStream
NewCreateDataStreamFunc returns a new instance of CreateDataStream with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.