(t Transport)
| 28 | ) |
| 29 | |
| 30 | func newILMPutLifecycleFunc(t Transport) ILMPutLifecycle { |
| 31 | return func(body io.Reader, policy string, o ...func(*ILMPutLifecycleRequest)) (*Response, error) { |
| 32 | var r = ILMPutLifecycleRequest{Body: body, Policy: policy} |
| 33 | for _, f := range o { |
| 34 | f(&r) |
| 35 | } |
| 36 | |
| 37 | if transport, ok := t.(Instrumented); ok { |
| 38 | r.Instrument = transport.InstrumentationEnabled() |
| 39 | } |
| 40 | |
| 41 | return r.Do(r.ctx, t) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // ----- API Definition ------------------------------------------------------- |
| 46 |
no test coverage detected