getdatalifecycle

package
v8.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Overview

Returns the data stream lifecycle of the selected data streams.

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 GetDataLifecycle

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

func (GetDataLifecycle) Do

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

func (*GetDataLifecycle) ExpandWildcards

func (r *GetDataLifecycle) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *GetDataLifecycle

ExpandWildcards Type of data stream that wildcard patterns can match. Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`. API name: expand_wildcards

func (*GetDataLifecycle) Header

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

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

func (*GetDataLifecycle) HttpRequest

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

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

func (*GetDataLifecycle) IncludeDefaults

func (r *GetDataLifecycle) IncludeDefaults(includedefaults bool) *GetDataLifecycle

IncludeDefaults If `true`, return all default settings in the response. API name: include_defaults

func (GetDataLifecycle) IsSuccess

func (r GetDataLifecycle) 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 (GetDataLifecycle) Perform

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

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

type NewGetDataLifecycle

type NewGetDataLifecycle func(name string) *GetDataLifecycle

NewGetDataLifecycle type alias for index.

func NewGetDataLifecycleFunc

func NewGetDataLifecycleFunc(tp elastictransport.Interface) NewGetDataLifecycle

NewGetDataLifecycleFunc returns a new instance of GetDataLifecycle with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.

type Response

type Response struct {
	DataStreams []types.DataStreamWithLifecycle `json:"data_streams"`
}

func NewResponse

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