Documentation ¶
Overview ¶
Find out whether system features need to be upgraded or not
Index ¶
- Variables
- type GetFeatureUpgradeStatus
- func (r GetFeatureUpgradeStatus) Do(ctx context.Context) (*Response, error)
- func (r *GetFeatureUpgradeStatus) Header(key, value string) *GetFeatureUpgradeStatus
- func (r *GetFeatureUpgradeStatus) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r GetFeatureUpgradeStatus) IsSuccess(ctx context.Context) (bool, error)
- func (r GetFeatureUpgradeStatus) Perform(ctx context.Context) (*http.Response, error)
- type NewGetFeatureUpgradeStatus
- 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 GetFeatureUpgradeStatus ¶
type GetFeatureUpgradeStatus struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetFeatureUpgradeStatus
Find out whether system features need to be upgraded or not
https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html
func (GetFeatureUpgradeStatus) Do ¶
func (r GetFeatureUpgradeStatus) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a getfeatureupgradestatus.Response
func (*GetFeatureUpgradeStatus) Header ¶
func (r *GetFeatureUpgradeStatus) Header(key, value string) *GetFeatureUpgradeStatus
Header set a key, value pair in the GetFeatureUpgradeStatus headers map.
func (*GetFeatureUpgradeStatus) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewGetFeatureUpgradeStatus ¶
type NewGetFeatureUpgradeStatus func() *GetFeatureUpgradeStatus
NewGetFeatureUpgradeStatus type alias for index.
func NewGetFeatureUpgradeStatusFunc ¶
func NewGetFeatureUpgradeStatusFunc(tp elastictransport.Interface) NewGetFeatureUpgradeStatus
NewGetFeatureUpgradeStatusFunc returns a new instance of GetFeatureUpgradeStatus 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 { Features []types.GetMigrationFeature `json:"features"` MigrationStatus migrationstatus.MigrationStatus `json:"migration_status"` }