// Open an object for read
Open an object for read
// Open an object for read
func (o *Object) Open(options ...fs.OpenOption) (in io.ReadCloser, err error) {
	var resp *http.Response
	opts := rest.Opts{
		Method:  "GET",
		Path:    o.filePath(),
		Options: options,
	}
	err = o.fs.pacer.Call(func() (bool, error) {
		resp, err = o.fs.srv.Call(&opts)
		return shouldRetry(resp, err)
	})
	if err != nil {
		return nil, err
	}
	return resp.Body, err
}
func ( o * Object ) Open ( options ... fs . OpenOption ) ( in io . ReadCloser , err error ) { var resp * http . Response opts := rest . Opts { Method : " " , Path : o . filePath ( ) , Options : options , } err = o . fs . pacer . Call ( func ( ) ( bool , error ) { resp , err = o . fs . srv . Call ( & opts ) return shouldRetry ( resp , err ) } ) if err != nil { return nil , err } return resp . Body , err }
Open an object for read
Open an object for read