Documentation ¶
Overview ¶
Begin upgrades for system features
Index ¶
- Variables
- type NewPostFeatureUpgrade
- type PostFeatureUpgrade
- func (r PostFeatureUpgrade) Do(ctx context.Context) (*Response, error)
- func (r *PostFeatureUpgrade) Header(key, value string) *PostFeatureUpgrade
- func (r *PostFeatureUpgrade) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r PostFeatureUpgrade) IsSuccess(ctx context.Context) (bool, error)
- func (r PostFeatureUpgrade) Perform(ctx context.Context) (*http.Response, error)
- 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 NewPostFeatureUpgrade ¶
type NewPostFeatureUpgrade func() *PostFeatureUpgrade
NewPostFeatureUpgrade type alias for index.
func NewPostFeatureUpgradeFunc ¶
func NewPostFeatureUpgradeFunc(tp elastictransport.Interface) NewPostFeatureUpgrade
NewPostFeatureUpgradeFunc returns a new instance of PostFeatureUpgrade with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type PostFeatureUpgrade ¶
type PostFeatureUpgrade struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *PostFeatureUpgrade
Begin upgrades for system features
https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html
func (PostFeatureUpgrade) Do ¶
func (r PostFeatureUpgrade) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a postfeatureupgrade.Response
func (*PostFeatureUpgrade) Header ¶
func (r *PostFeatureUpgrade) Header(key, value string) *PostFeatureUpgrade
Header set a key, value pair in the PostFeatureUpgrade headers map.
func (*PostFeatureUpgrade) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type Response ¶
type Response struct { Accepted bool `json:"accepted"` Features []types.PostMigrationFeature `json:"features"` }